Property | Type | Description | |
---|---|---|---|
$byRef | Whether to return by reference | ||
$params | Parameters | ||
$returnType | Return type | ||
$static | Whether the closure is static | ||
$stmts | Statements | ||
$uses | use()s |
Method | Description | |
---|---|---|
__construct ( array $subNodes = [], array $attributes = [] ) | Constructs a lambda function node. | |
getParams ( ) | ||
getReturnType ( ) | ||
getStmts ( ) | ||
getSubNodeNames ( ) | ||
returnsByRef ( ) |
public __construct ( array $subNodes = [], array $attributes = [] ) | ||
$subNodes | array | Array of the following optional subnodes: 'static' => false : Whether the closure is static 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'uses' => array(): use()s 'returnType' => null : Return type 'stmts' => array(): Statements |
$attributes | array | Additional attributes |