Свойство | Type | Description | |
---|---|---|---|
$byRef | Whether function returns by reference | ||
$name | Name | ||
$params | Parameters | ||
$returnType | Return type | ||
$stmts | Statements |
Méthode | Description | |
---|---|---|
__construct ( string $name, array $subNodes = [], array $attributes = [] ) | Constructs a function node. | |
getParams ( ) | ||
getReturnType ( ) | ||
getStmts ( ) | ||
getSubNodeNames ( ) | ||
returnsByRef ( ) |
public __construct ( string $name, array $subNodes = [], array $attributes = [] ) | ||
$name | string | Name |
$subNodes | array | Array of the following optional subnodes: 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'returnType' => null : Return type 'stmts' => array(): Statements |
$attributes | array | Additional attributes |