Action
in package
implements
IteratorAggregate, Countable
Class Action
Tags
Table of Contents
Interfaces
- IteratorAggregate
- Countable
Properties
- $label : string|null
- $name : string
- $params : array<string|int, mixed>
- $type : string
- $visible : bool
- $children : array<string, Action>
- $parent : Action|null
Methods
- __construct() : mixed
- __debugInfo() : array<string|int, mixed>
- addChild() : void
- count() : int
- getChild() : Action|null
- getChildren() : array<string|int, Action>
- getIterator() : Traversable
- getLevels() : int
- getParam() : mixed|null
- getParams() : array<string|int, mixed>
- getParent() : Action|null
- getScope() : string
- hasChildren() : bool
- setParent() : void
Properties
$label
public
string|null
$label
$name
public
string
$name
$params
public
array<string|int, mixed>
$params
$type
public
string
$type
$visible
public
bool
$visible
$children
protected
array<string, Action>
$children
= []
$parent
protected
Action|null
$parent
Methods
__construct()
public
__construct(string $name[, array<string|int, mixed> $action = [] ]) : mixed
Parameters
- $name : string
- $action : array<string|int, mixed> = []
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, mixed>addChild()
public
addChild(Action $child) : void
Parameters
- $child : Action
count()
public
count() : int
Return values
intgetChild()
public
getChild(string $name) : Action|null
Parameters
- $name : string
Return values
Action|nullgetChildren()
public
getChildren() : array<string|int, Action>
Return values
array<string|int, Action>getIterator()
public
getIterator() : Traversable
Return values
TraversablegetLevels()
public
getLevels() : int
Return values
intgetParam()
public
getParam(string $name) : mixed|null
Parameters
- $name : string
Return values
mixed|nullgetParams()
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getParent()
public
getParent() : Action|null
Return values
Action|nullgetScope()
public
getScope() : string
Return values
stringhasChildren()
public
hasChildren() : bool
Return values
boolsetParent()
public
setParent(Action|null $parent) : void
Parameters
- $parent : Action|null