Action extends Base
Class Base
Table of Contents
Methods
- __construct() : mixed
- Action constructor.
- addChecker() : $this
- Add checker.
- addResponseModifier() : $this
- Add response modifier.
- call() : mixed
- Call.
- create() : static
- Create instance.
- getCheckers() : array<string|int, mixed>
- Get checkers.
- getName() : string
- Get name.
- getRequestMethod() : string
- Get request method.
- getResponseModifiers() : array<string|int, mixed>
- Get response modifiers.
- run() : mixed
- Run.
- setCheckers() : $this
- Set checkers.
- setHandler() : $this
- Set handler.
- setRequestMethodGet() : $this
- Set request method GET.
- setResponseModifiers() : $this
- Set response modifiers.
Methods
__construct()
Action constructor.
public
__construct(string $name[, callable|null $handler = null ]) : mixed
Parameters
- $name : string
-
Name.
- $handler : callable|null = null
-
Handler.
addChecker()
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(string $name) : static
Parameters
- $name : string
-
Name.
Return values
staticgetCheckers()
Get checkers.
public
getCheckers() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get name.
public
getName() : string
Return values
stringgetRequestMethod()
Get request method.
public
getRequestMethod() : string
Return values
stringgetResponseModifiers()
Get response modifiers.
public
getResponseModifiers() : array<string|int, mixed>
Return values
array<string|int, mixed>run()
Run.
public
run(HttpRequest $request, Response $response) : mixed
Parameters
- $request : HttpRequest
- $response : Response
Tags
setCheckers()
Set checkers.
public
setCheckers(array<string|int, callable> $checkers) : $this
Parameters
- $checkers : array<string|int, callable>
-
Checkers.
Return values
$thissetHandler()
Set handler.
public
setHandler(callable $handler) : $this
Parameters
- $handler : callable
-
Handler.
Tags
Return values
$thissetRequestMethodGet()
Set request method GET.
public
setRequestMethodGet() : $this
Return values
$thissetResponseModifiers()
Set response modifiers.
public
setResponseModifiers(array<string|int, callable> $modifiers) : $this
Parameters
- $modifiers : array<string|int, callable>
-
Modifiers.