Documentation

Worker

Represent a process in the pipeline

Table of Contents

$next  : Worker
The next worker
getNext()  : Worker
Get the worker after this worker in the pipe
run()  : Entity
Function which start the execution to a chain of workers by starting from this worker
setNext()  : void
Set the worker after this worker in the pipe
process()  : Entity
Function which contains instruction to execute when the worker run

Properties

Methods

getNext()

Get the worker after this worker in the pipe

public getNext() : Worker
Return values
Worker

run()

Function which start the execution to a chain of workers by starting from this worker

public run(Entity $data[, bool $rewrite_data = false ]) : Entity
Parameters
$data : Entity
$rewrite_data : bool = false
Return values
Entity

setNext()

Set the worker after this worker in the pipe

public setNext(Worker $next) : void
Parameters
$next : Worker
Return values
void

process()

Function which contains instruction to execute when the worker run

protected abstract process(Entity $entity) : Entity
Parameters
$entity : Entity
Return values
Entity

Search results