Documentation

Launcher extends Worker

A worker which execute a function

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
getResponse()  : Response
Get a Response object

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 process(Entity $data) : Entity
Parameters
$data : Entity
Return values
Entity

getResponse()

Get a Response object

private getResponse(mixed $response) : Response
Parameters
$response : mixed
Return values
Response

Search results