Flow PHP

Processor extends Describable

Unlike a Transformer, receives the whole upstream generator, not one batch.

Methods

bind()  : BoundStep<string|int, Processor>
breaks()  : bool
True when process() needs every input row before it emits one: the processor ends its pipeline.
describe()  : null|Description
fromDescription()  : static
process()  : Generator<string|int, Rows>
Process a stream of Rows and return a new stream.

Methods

breaks()

True when process() needs every input row before it emits one: the processor ends its pipeline.

public breaks() : bool
Return values
bool

describe()

public describe() : null|Description
Return values
null|Description —

null when this instance cannot cross a process boundary (a live client, a custom collaborator)

fromDescription()

public static fromDescription(array<string|int, mixed> $data, Rebuild $rebuild) : static
Parameters
$data : array<string|int, mixed>
$rebuild : Rebuild
Return values
static

process()

Process a stream of Rows and return a new stream.

public process(Generator<string|int, Rows> $rows, Backend $backend) : Generator<string|int, Rows>
Parameters
$rows : Generator<string|int, Rows>
$backend : Backend
Return values
Generator<string|int, Rows>
On this page

Search results