Methods |
public
|
__construct(
Const_[] $consts,
int $flags = 0,
array<string, mixed> $attributes = [],
list<AttributeGroup> $attrGroups = [],
null|Identifier|Name|ComplexType $type = null,
)
Constructs a class const list node.
Constructs a class const list node.
Parameters
$consts |
Constant declarations
|
$flags |
Modifiers
|
$attributes |
Additional attributes
|
$attrGroups |
PHP attribute groups
|
$type |
Type declaration
|
Overrides
|
#
|
public
|
getSubNodeNames(): array
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|
public
|
isPublic(): bool
Whether constant is explicitly or implicitly public.
Whether constant is explicitly or implicitly public.
|
#
|
public
|
isProtected(): bool
Whether constant is protected.
Whether constant is protected.
|
#
|
public
|
isPrivate(): bool
Whether constant is private.
Whether constant is private.
|
#
|
public
|
isFinal(): bool
Whether constant is final.
Whether constant is final.
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|