IntegerNode
class IntegerNode extends NumericNode
This node represents an integer value in the config tree.
Methods
Adds an equivalent value.
Sets the closures used for final validation.
Normalizes a value, applying all normalization closures.
Sets if this node is allowed to have an empty value.
Details
in NumericNode at line line 26
__construct(string $name, NodeInterface $parent = null, $min = null, $max = null)
Constructor.
in BaseNode at line line 52
setAttribute($key, $value)
in BaseNode at line line 57
getAttribute($key, $default = null)
in BaseNode at line line 62
hasAttribute($key)
in BaseNode at line line 67
getAttributes()
in BaseNode at line line 72
setAttributes(array $attributes)
in BaseNode at line line 77
removeAttribute($key)
in BaseNode at line line 87
setInfo(string $info)
Sets an info message.
in BaseNode at line line 97
string
getInfo()
Returns info message.
in BaseNode at line line 107
setExample(string|array $example)
Sets the example configuration for this node.
in BaseNode at line line 117
string|array
getExample()
Retrieves the example configuration for this node.
in BaseNode at line line 128
addEquivalentValue(mixed $originalValue, mixed $equivalentValue)
Adds an equivalent value.
in BaseNode at line line 138
setRequired(bool $boolean)
Set this node as required.
in BaseNode at line line 148
setAllowOverwrite(bool $allow)
Sets if this node can be overridden.
in BaseNode at line line 158
setNormalizationClosures(array $closures)
Sets the closures used for normalization.
in BaseNode at line line 168
setFinalValidationClosures(array $closures)
Sets the closures used for final validation.
in BaseNode at line line 178
bool
isRequired()
Checks if this node is required.
in BaseNode at line line 188
string
getName()
Returns the name of this node
in BaseNode at line line 198
string
getPath()
Retrieves the path of this node.
in BaseNode at line line 219
final mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
in BaseNode at line line 243
final mixed
normalize(mixed $value)
Normalizes a value, applying all normalization closures.
in BaseNode at line line 283
NodeInterface|null
getParent()
Returns parent node for this node.
in BaseNode at line line 298
final mixed
finalize(mixed $value)
Finalizes a value, applying all finalization closures.
in VariableNode at line line 33
setDefaultValue($value)
{@inheritdoc}
in VariableNode at line line 42
bool
hasDefaultValue()
Returns true when the node has a default value.
in VariableNode at line line 50
mixed
getDefaultValue()
Returns the default value of the node.
in VariableNode at line line 60
setAllowEmptyValue(bool $boolean)
Sets if this node is allowed to have an empty value.
in VariableNode at line line 68
setName(string $name)
Sets the name of the node.