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
|
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.
|
#
|
Properties |
public
|
null|Identifier|Name|ComplexType
|
$type
|
#
|
public
|
bool
|
$byRef
Whether parameter is passed by reference
Whether parameter is passed by reference
|
#
|
public
|
bool
|
$variadic
Whether this is a variadic argument
Whether this is a variadic argument
|
#
|
public
|
Variable|Error
|
$var
|
#
|
public
|
null|Expr
|
$default
|
#
|
public
|
int
|
$flags
Optional visibility flags
Optional visibility flags
|
#
|
public
|
AttributeGroup[]
|
$attrGroups
|
#
|
public
|
PropertyHook[]
|
$hooks
Property hooks for promoted properties
Property hooks for promoted properties
|
#
|