Pipeline
in package
implements
PipelineInterface
Interfaces, Classes and Traits
Table of Contents
- $processor : ProcessorInterface
- $stages : array<string|int, callable>
- __construct() : mixed
- __invoke() : mixed
- pipe() : static
- Create a new pipeline with an appended stage.
- process() : mixed
Properties
$processor
private
ProcessorInterface
$processor
$stages
private
array<string|int, callable>
$stages
= []
Methods
__construct()
public
__construct([ProcessorInterface $processor = null ], callable ...$stages) : mixed
Parameters
- $processor : ProcessorInterface = null
- $stages : callable
Return values
mixed —__invoke()
public
__invoke(mixed $payload) : mixed
Parameters
- $payload : mixed
Return values
mixed —pipe()
Create a new pipeline with an appended stage.
public
pipe(callable $stage) : static
Parameters
- $stage : callable
Return values
static —process()
public
process(mixed $payload) : mixed
Parameters
- $payload : mixed