Methods |
public
|
__construct(string $name)
Creates a parameter builder.
Creates a parameter builder.
Parameters
$name |
Name of the parameter
|
|
#
|
public
|
setDefault(mixed $value): $this
Sets default value for the parameter.
Sets default value for the parameter.
Parameters
$value |
Default value to use
|
Returns
The builder instance (for fluid interface)
|
#
|
public
|
setType(string|Name|Identifier|ComplexType $type): $this
Sets type for the parameter.
Sets type for the parameter.
Parameters
Returns
The builder instance (for fluid interface)
|
#
|
public
|
setTypeHint(string|Name|Identifier|ComplexType $type): $this
Sets type for the parameter.
Sets type for the parameter.
Deprecated
Parameters
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeByRef(): $this
Make the parameter accept the value by reference.
Make the parameter accept the value by reference.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeVariadic(): $this
Make the parameter variadic
Make the parameter variadic
Returns
The builder instance (for fluid interface)
|
#
|
public
|
addAttribute(Attribute|AttributeGroup $attribute): $this
Adds an attribute group.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
getNode(): Param
Returns the built parameter node.
Returns the built parameter node.
Returns
Implements
|
#
|