IntegerNodeDefinition
class IntegerNodeDefinition extends NumericNodeDefinition
This class provides a fluent interface for defining an integer node.
Properties
protected | $name | from NodeDefinition | |
protected | $normalization | from NodeDefinition | |
protected | $validation | from NodeDefinition | |
protected | $defaultValue | from NodeDefinition | |
protected | $default | from NodeDefinition | |
protected | $required | from NodeDefinition | |
protected | $deprecationMessage | from NodeDefinition | |
protected | $merge | from NodeDefinition | |
protected | $allowEmptyValue | from NodeDefinition | |
protected | $nullEquivalent | from NodeDefinition | |
protected | $trueEquivalent | from NodeDefinition | |
protected | $falseEquivalent | from NodeDefinition | |
protected | $pathSeparator | from NodeDefinition | |
protected | $parent | from NodeDefinition | |
protected | $attributes | from NodeDefinition | |
protected | $min | from NumericNodeDefinition | |
protected | $max | from NumericNodeDefinition |
Methods
Returns the parent node.
Sets the node as deprecated.
Sets the equivalent value used when the node contains null.
Sets the equivalent value used when the node contains true.
Sets the equivalent value used when the node contains false.
Sets an expression to run before the normalization.
Sets whether the node can be overwritten.
Instantiate and configure the node according to this definition.
Instantiates a Node.
Ensures that the value is smaller than the given reference.
Ensures that the value is bigger than the given reference.
Details
NodeParentInterface|NodeBuilder|NodeDefinition|ArrayNodeDefinition|VariableNodeDefinition|null
end()
Returns the parent node.
$this
setDeprecated(string $message = 'The child node "%node%" at path "%path%" is deprecated.')
Sets the node as deprecated.
You can use %node% and %path% placeholders in your message to display, respectively, the node name and its complete path.
ExprBuilder
validate()
Sets an expression to run for the validation.
The expression receives the value of the node and must return it. It can modify it. An exception should be thrown when the node is not valid.
protected NodeInterface
createNode()
Instantiate and configure the node according to this definition.