Methods |
public
|
__construct(
array{expr:Expr, static?:bool, byRef?:bool, params?:Param[], returnType?:(null|Identifier|Name|ComplexType), attrGroups?:AttributeGroup[]} $subNodes,
array<string, mixed> $attributes = [],
)
Creates a Node.
Parameters
$subNodes |
Array of the following subnodes:
'expr' : Expression body
'static' => false : Whether the closure is static
'byRef' => false : Whether to return by reference
'params' => array() : Parameters
'returnType' => null : Return type
'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
|
#
|