Documentation

ResponseSender extends Worker

A worker which create a Response

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
send()  : void
Send the response
setNext()  : void
Set the worker after this worker in the pipe
process()  : Entity
Function which contains instruction to execute when the worker run
setHeaders()  : void
Set all the response headers

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

Search results