ParserProperty
Less than 1 minute
ParserProperty
Parses class property declarations.
class ParserProperty extends \Hazaar\Parser\PHP\TokenParserExtends: Hazaar\Parser\PHP\TokenParser
Properties
type
public string $typeType: string
nullable
Indicates nullable property syntax (?Type $prop).
public bool $nullableType: bool
access
Property visibility modifier.
public string $access = 'public'Type: string
value
Default property value when declared.
public mixed $valueType: mixed
static
Indicates static property declaration.
public bool $staticType: bool
typeLink
public string $typeLinkType: string
Methods
parse
Parses a class property at the current token position.
protected parse(array $tokens): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream positioned on T_VARIABLE |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000