ParserFunction
Less than 1 minute
ParserFunction
Parses function and method declarations.
class ParserFunction extends \Hazaar\Parser\PHP\TokenParserExtends: Hazaar\Parser\PHP\TokenParser
Properties
static
Indicates if the function is static.
public bool $staticType: bool
access
public string $access = 'public'Type: string
byRef
Indicates that the function returns by reference (function &name()).
public bool $byRefType: bool
returns
public ParserReturn $returnsType: Hazaar\Parser\PHP\ParserReturn
params
Parsed function parameters.
public array $paramsType: array
Methods
parse
Parses a function declaration and its signature metadata.
protected parse(array $tokens): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream positioned on T_FUNCTION |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000