class ScalarNode extends VariableNode
This node represents a scalar value in the config tree.
The following values are considered scalars:
* booleans
* strings
* null
* integers
* floats
Methods
|
setDefaultValue($value)
{@inheritDoc} |
from VariableNode | |
| Boolean |
hasDefaultValue()
Returns true when the node has a default value. |
from VariableNode |
| mixed |
getDefaultValue()
Returns the default value of the node. |
from VariableNode |
|
setAllowEmptyValue(Boolean $boolean)
Sets if this node is allowed to have an empty value. |
from VariableNode | |
|
setName(string $name)
Sets the name of the node. |
from VariableNode |
Details
in VariableNode at line 33
public
setDefaultValue($value)
{@inheritDoc}
in VariableNode at line 42
public Boolean
hasDefaultValue()
Returns true when the node has a default value.
in VariableNode at line 50
public mixed
getDefaultValue()
Returns the default value of the node.
in VariableNode at line 60
public
setAllowEmptyValue(Boolean $boolean)
Sets if this node is allowed to have an empty value.
in VariableNode at line 68
public
setName(string $name)
Sets the name of the node.