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
$next
The next worker
private
Worker
$next
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 —send()
Send the response
public
send(Response $response) : void
Parameters
- $response : Response
Return values
void —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 $response) : Entity
Parameters
- $response : Entity
Return values
Entity —setHeaders()
Set all the response headers
private
setHeaders(Response $response) : void
Parameters
- $response : Response