Methods |
public
|
__construct(array $subNodes = [], array $attributes = [])
Creates a Node.
Parameters
$subNodes |
Array of the following optional subnodes:
'static' => false : Whether the closure is static
'byRef' => false : Whether to return by reference
'params' => array() : Parameters
'returnType' => null : Return type
'expr' => Expr : Expression body
'attrGroups' => array() : PHP attribute groups
|
$attributes |
Additional attributes
|
Overrides
|
#
|
public
|
getSubNodeNames(): array
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|
public
|
returnsByRef(): bool
Whether to return by reference
Whether to return by reference
Implements
|
#
|
public
|
getParams(): array
List of parameters
|
#
|
public
|
getReturnType()
Get the declared return type or null
Get the declared return type or null
Implements
|
#
|
public
|
getAttrGroups(): array
Get PHP attribute groups.
Get PHP attribute groups.
Implements
|
#
|
public
|
getStmts(): Return_[]
The function body
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|