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
|
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
|
makePublic(): $this
Makes the (promoted) parameter public.
Makes the (promoted) parameter public.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeProtected(): $this
Makes the (promoted) parameter protected.
Makes the (promoted) parameter protected.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePrivate(): $this
Makes the (promoted) parameter private.
Makes the (promoted) parameter private.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeReadonly(): $this
Makes the (promoted) parameter readonly.
Makes the (promoted) parameter readonly.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makePrivateSet(): $this
Gives the promoted property private(set) visibility.
Gives the promoted property private(set) visibility.
Returns
The builder instance (for fluid interface)
|
#
|
public
|
makeProtectedSet(): $this
Gives the promoted property protected(set) visibility.
Gives the promoted property protected(set) visibility.
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
|
#
|