| Methods |
public
|
__construct(
Variable|Error $var,
null|Expr $default = null,
null|Identifier|Name|ComplexType $type = null,
bool $byRef = false,
bool $variadic = false,
array<string, mixed> $attributes = [],
int $flags = 0,
list<AttributeGroup> $attrGroups = [],
PropertyHook[] $hooks = [],
)
Constructs a parameter node.
Constructs a parameter node.
Parameters
| $var |
Parameter variable
|
| $default |
Default value
|
| $type |
Type declaration
|
| $byRef |
Whether is passed by reference
|
| $variadic |
Whether this is a variadic argument
|
| $attributes |
Additional attributes
|
| $flags |
Optional visibility flags
|
| $attrGroups |
PHP attribute groups
|
| $hooks |
Property hooks for promoted properties
|
Overrides
|
#
|
public
|
getSubNodeNames(): array
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|
public
|
isPromoted(): bool
Whether this parameter uses constructor property promotion.
Whether this parameter uses constructor property promotion.
|
#
|
public
|
isFinal(): bool
|
#
|
public
|
isPublic(): bool
|
#
|
public
|
isProtected(): bool
|
#
|
public
|
isPrivate(): bool
|
#
|
public
|
isReadonly(): bool
|
#
|
public
|
isPublicSet(): bool
Whether the promoted property has explicit public(set) visibility.
Whether the promoted property has explicit public(set) visibility.
|
#
|
public
|
isProtectedSet(): bool
Whether the promoted property has explicit protected(set) visibility.
Whether the promoted property has explicit protected(set) visibility.
|
#
|
public
|
isPrivateSet(): bool
Whether the promoted property has explicit private(set) visibility.
Whether the promoted property has explicit private(set) visibility.
|
#
|