ActionInterface
in
Action interface
Table of Contents
Methods
- get() : mixed
- Get result field
- getError() : mixed
- Get execution error
- hasError() : bool
- Return true if action is executed successful
- option() : ActionInterface
- Set option
- run() : mixed
- Run action
- setOptions() : void
- Set options
- toArray() : array<string|int, mixed>
- Convert to array
Methods
get()
Get result field
public
get(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getError()
Get execution error
public
getError() : mixed
hasError()
Return true if action is executed successful
public
hasError() : bool
Return values
booloption()
Set option
public
option(string $name, mixed $value) : ActionInterface
Parameters
- $name : string
- $value : mixed
Return values
ActionInterfacerun()
Run action
public
run(mixed ...$params) : mixed
Parameters
- $params : mixed
setOptions()
Set options
public
setOptions(array<string|int, mixed> $options) : void
Parameters
- $options : array<string|int, mixed>
toArray()
Convert to array
public
toArray() : array<string|int, mixed>