Listener extends Base
Class Base
Table of Contents
Constants
- REQUEST_METHOD_GET = 'GET'
- REQUEST_METHOD_POST = 'POST'
Methods
- __construct() : mixed
- Controller constructor.
- addAction() : $this
- Add action.
- addChecker() : $this
- Add checker.
- addResponseModifier() : $this
- Add response modifier.
- call() : mixed
- Call.
- create() : static
- Create instance.
- getCheckers() : array<string|int, mixed>
- Get checkers.
- getErrorCollection() : ErrorCollection
- Get error collection.
- getResponseModifiers() : array<string|int, mixed>
- Get response modifiers.
- run() : mixed
- Run.
- setActions() : $this
- Set actions.
- setCheckers() : $this
- Set checkers.
- setResponseModifiers() : $this
- Set response modifiers.
Constants
REQUEST_METHOD_GET
public
mixed
REQUEST_METHOD_GET
= 'GET'
REQUEST_METHOD_POST
public
mixed
REQUEST_METHOD_POST
= 'POST'
Methods
__construct()
Controller constructor.
public
__construct() : mixed
addAction()
Add action.
public
addAction(Action $action) : $this
Parameters
- $action : Action
-
Action.
Return values
$thisaddChecker()
Add checker.
public
addChecker(callable $checker) : $this
Parameters
- $checker : callable
-
Checker.
Tags
Return values
$thisaddResponseModifier()
Add response modifier.
public
addResponseModifier(callable $modifier) : $this
Parameters
- $modifier : callable
-
Modifier.
Tags
Return values
$thiscall()
Call.
public
static call(callable $callee[, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
- $callee : callable
-
Callee.
- $parameters : array<string|int, mixed> = array()
-
Parameters.
Tags
create()
Create instance.
public
static create() : static
Return values
staticgetCheckers()
Get checkers.
public
getCheckers() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorCollection()
Get error collection.
public
getErrorCollection() : ErrorCollection
Return values
ErrorCollectiongetResponseModifiers()
Get response modifiers.
public
getResponseModifiers() : array<string|int, mixed>
Return values
array<string|int, mixed>run()
Run.
public
run() : mixed
setActions()
Set actions.
public
setActions(array<string|int, Action> $actions) : $this
Parameters
- $actions : array<string|int, Action>
-
Actions.
Return values
$thissetCheckers()
Set checkers.
public
setCheckers(array<string|int, callable> $checkers) : $this
Parameters
- $checkers : array<string|int, callable>
-
Checkers.
Return values
$thissetResponseModifiers()
Set response modifiers.
public
setResponseModifiers(array<string|int, callable> $modifiers) : $this
Parameters
- $modifiers : array<string|int, callable>
-
Modifiers.