ParserProperty
Less than 1 minute
ParserProperty
Parses class property declarations.
class ParserProperty extends \Hazaar\Parser\PHP\TokenParserProperties
type
public string $typenullable
Indicates nullable property syntax (?Type $prop).
public bool $nullableaccess
Property visibility modifier.
public string $access = 'public'value
Default property value when declared.
public mixed $valuestatic
Indicates static property declaration.
public bool $staticMethods
parse
Parses a class property at the current token position.
protected parse(array $tokens): boolParameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream positioned on T_VARIABLE |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000