Method | Description | |
---|---|---|
__construct ( string $name, array $subNodes = [], integer $line, null | string $docComment = null ) | Constructs a function node. | |
add_global_var ( $name ) |
public __construct ( string $name, array $subNodes = [], integer $line, null | string $docComment = null ) | ||
$name | string | Name |
$subNodes | array | Array of the following optional subnodes: 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'stmts' => array(): Statements |
$line | integer | Line |
$docComment | null | string | Nearest doc comment |