ParserNamespace
Less than 1 minute
ParserNamespace
Parses namespace declarations and stores namespace-scoped symbols.
class ParserNamespace extends \Hazaar\Parser\PHP\TokenParserProperties
docBlock
public DocBlock $docBlockconstants
Constants declared within this namespace.
public array $constantsclasses
Classes declared within this namespace.
public array $classesinterfaces
Interfaces declared within this namespace.
public array $interfacesfunctions
Functions declared within this namespace.
public array $functionstraits
Traits declared within this namespace.
public array $traitsenums
Enums declared within this namespace.
public array $enumsMethods
apply
Apply the namespace to the given array of namespaces.
public apply(string $namespace): stringParameters
| Parameter | Type | Description |
|---|---|---|
$namespace | string |
parse
Parses a namespace declaration from the current token position.
protected parse(array $tokens): boolParameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream used by the parser |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000