class Pipeline

Properties

protected Pipe> $firstPipes

The first pipes in the pipeline.

protected Pipe> $pipes

The default pipes in the pipeline.

protected Pipe> $lastPipes

The last pipes in the pipeline.

protected array<string, true> $names

The registered pipe names.

Methods

pipe(callable $callable, string|null $name = null, PipeOrder|null $order = null)

Add a pipe to the pipeline.

mixed
process(mixed $payload)

Process the pipeline.

setPipes(array $pipes)

Set the pipes on the pipeline.

array
pipes()

Get all the pipes in execution order.

Details

at line 48
Pipeline pipe(callable $callable, string|null $name = null, PipeOrder|null $order = null)

Add a pipe to the pipeline.

Parameters

callable $callable
string|null $name
PipeOrder|null $order

Return Value

Pipeline

at line 72
mixed process(mixed $payload)

Process the pipeline.

Parameters

mixed $payload

Return Value

mixed

at line 89
Pipeline setPipes(array $pipes)

Set the pipes on the pipeline.

Parameters

array $pipes

Return Value

Pipeline

at line 108
array pipes()

Get all the pipes in execution order.

Return Value

array