Documentation

Pipeline
in package
implements PipelineInterface

Interfaces, Classes and Traits

PipelineInterface

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

$stages

private array<string|int, callable> $stages = []

Methods

__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
Return values
mixed

Search results