class VariableNode extends BaseNode implements PrototypeNodeInterface
This node represents a value of variable type in the config tree.
This node is intended for values of arbitrary type.
Any PHP type is accepted as a value.
Methods
|
__construct(string $name, NodeInterface $parent = null)
Constructor. |
from BaseNode | |
|
addEquivalentValue(mixed $originalValue, mixed $equivalentValue)
Adds an equivalent value. |
from BaseNode | |
|
setRequired(Boolean $boolean)
Set this node as required. |
from BaseNode | |
|
setAllowOverwrite(Boolean $allow)
Sets if this node can be overridden. |
from BaseNode | |
|
setNormalizationClosures(array $closures)
Sets the closures used for normalization. |
from BaseNode | |
|
setFinalValidationClosures(array $closures)
Sets the closures used for final validation. |
from BaseNode | |
| Boolean |
isRequired()
Returns true when the node is required. |
from BaseNode |
| string |
getName()
Returns the name of the node. |
from BaseNode |
| string |
getPath()
Returns the path of the node. |
from BaseNode |
| mixed |
merge(mixed $leftSide, mixed $rightSide)
Merges two values together. |
from BaseNode |
| mixed |
normalize(mixed $value)
Normalizes the supplied value. |
from BaseNode |
| mixed |
finalize(mixed $value)
Finalizes a value. |
from BaseNode |
|
setDefaultValue($value)
{@inheritDoc} |
||
| Boolean |
hasDefaultValue()
Returns true when the node has a default value. |
|
| mixed |
getDefaultValue()
Returns the default value of the node. |
|
|
setAllowEmptyValue(Boolean $boolean)
Sets if this node is allowed to have an empty value. |
||
|
setName(string $name)
Sets the name of the node. |
Details
in BaseNode at line 41
public
__construct(string $name, NodeInterface $parent = null)
Constructor.
in BaseNode at line 62
public
addEquivalentValue(mixed $originalValue, mixed $equivalentValue)
Adds an equivalent value.
in BaseNode at line 72
public
setRequired(Boolean $boolean)
Set this node as required.
in BaseNode at line 82
public
setAllowOverwrite(Boolean $allow)
Sets if this node can be overridden.
in BaseNode at line 92
public
setNormalizationClosures(array $closures)
Sets the closures used for normalization.
in BaseNode at line 102
public
setFinalValidationClosures(array $closures)
Sets the closures used for final validation.
in BaseNode at line 112
public Boolean
isRequired()
Returns true when the node is required.
in BaseNode at line 122
public string
getName()
Returns the name of the node.
in BaseNode at line 132
public string
getPath()
Returns the path of the node.
in BaseNode at line 153
final public mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
in BaseNode at line 177
final public mixed
normalize(mixed $value)
Normalizes the supplied value.
in BaseNode at line 205
final public mixed
finalize(mixed $value)
Finalizes a value.
at line 33
public
setDefaultValue($value)
{@inheritDoc}
at line 42
public Boolean
hasDefaultValue()
Returns true when the node has a default value.
at line 50
public mixed
getDefaultValue()
Returns the default value of the node.
at line 60
public
setAllowEmptyValue(Boolean $boolean)
Sets if this node is allowed to have an empty value.
at line 68
public
setName(string $name)
Sets the name of the node.