Methods |
public
|
__construct(
int $flags,
PropertyItem[] $props,
array<string, mixed> $attributes = [],
null|Identifier|Name|ComplexType $type = null,
AttributeGroup[] $attrGroups = [],
PropertyHook[] $hooks = [],
)
Constructs a class property list node.
Constructs a class property list node.
Parameters
$flags |
Modifiers
|
$props |
Properties
|
$attributes |
Additional attributes
|
$type |
Type declaration
|
$attrGroups |
PHP attribute groups
|
$hooks |
Property hooks
|
Overrides
|
#
|
public
|
getSubNodeNames(): array
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|
public
|
isPublic(): bool
Whether the property is explicitly or implicitly public.
Whether the property is explicitly or implicitly public.
|
#
|
public
|
isProtected(): bool
Whether the property is protected.
Whether the property is protected.
|
#
|
public
|
isPrivate(): bool
Whether the property is private.
Whether the property is private.
|
#
|
public
|
isStatic(): bool
Whether the property is static.
Whether the property is static.
|
#
|
public
|
isReadonly(): bool
Whether the property is readonly.
Whether the property is readonly.
|
#
|
public
|
isPublicSet(): bool
Whether the property has explicit public(set) visibility.
Whether the property has explicit public(set) visibility.
|
#
|
public
|
isProtectedSet(): bool
Whether the property has explicit protected(set) visibility.
Whether the property has explicit protected(set) visibility.
|
#
|
public
|
isPrivateSet(): bool
Whether the property has explicit private(set) visibility.
Whether the property has explicit private(set) visibility.
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|