Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition
This class provides a fluent interface for defining a node.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class BooleanNodeDefinition
extends ScalarNodeDefinition
{
- // Inherited members from NodeDefinition
- protected $name;
- protected $normalization;
- protected $validation;
- protected $defaultValue;
- protected $default;
- protected $required;
- protected $merge;
- protected $allowEmptyValue;
- protected $nullEquivalent;
- protected $trueEquivalent;
- protected $falseEquivalent;
- protected NodeParentInterface|NodeInterface $parent;
- protected array $attributes;
- // methods
- public void __construct()
- protected BooleanNode instantiateNode()
- // Inherited methods from ScalarNodeDefinition
- protected ScalarNode instantiateNode()
- // Inherited methods from VariableNodeDefinition
- protected VariableNode instantiateNode()
- protected void createNode()
- // Inherited methods from NodeDefinition
- public void __construct()
- public NodeDefinition setParent()
- public NodeDefinition info()
- public NodeDefinition example()
- public NodeDefinition attribute()
- public NodeParentInterface end()
- public NodeInterface getNode()
- public NodeDefinition defaultValue()
- public NodeDefinition isRequired()
- public NodeDefinition treatNullLike()
- public NodeDefinition treatTrueLike()
- public NodeDefinition treatFalseLike()
- public NodeDefinition defaultNull()
- public NodeDefinition defaultTrue()
- public NodeDefinition defaultFalse()
- public ExprBuilder beforeNormalization()
- public NodeDefinition cannotBeEmpty()
- public ExprBuilder validate()
- public NodeDefinition cannotBeOverwritten()
- protected ValidationBuilder validation()
- protected MergeBuilder merge()
- protected NormalizationBuilder normalization()
- protected abstract NodeInterface createNode()
Hierarchy
Members
protected
- $allowEmptyValue
- $attributes
- $default
- $defaultValue
- $falseEquivalent
- $merge
- $name
- $normalization
- $nullEquivalent
- $parent — Symfony\Component\Config\Definition\Builder\NodeParentInterface|NodeInterface
- $required
- $trueEquivalent
- $validation
Methods
protected
- instantiateNode() — Instantiate a Node
Inherited from Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition
protected
- instantiateNode() — Instantiate a Node
Inherited from Symfony\Component\Config\Definition\Builder\VariableNodeDefinition
protected
- createNode() — {@inheritDoc}
- instantiateNode() — Instantiate a Node
Inherited from Symfony\Component\Config\Definition\Builder\NodeDefinition
protected
- createNode() — Instantiate and configure the node according to this definition
- merge() — Gets the builder for merging rules.
- normalization() — Gets the builder for normalization rules.
- validation() — Gets the builder for validation rules.
public
- attribute() — Sets an attribute on the node.
- beforeNormalization() — Sets an expression to run before the normalization.
- cannotBeEmpty() — Denies the node value being empty.
- cannotBeOverwritten() — Sets whether the node can be overwritten.
- defaultFalse() — Sets false as the default value.
- defaultNull() — Sets null as the default value.
- defaultTrue() — Sets true as the default value.
- defaultValue() — Sets the default value.
- end() — Returns the parent node.
- example() — Sets example configuration.
- getNode() — Creates the node.
- info() — Sets info message.
- isRequired() — Sets the node as required.
- setParent() — Sets the parent node.
- treatFalseLike() — Sets the equivalent value used when the node contains false.
- treatNullLike() — Sets the equivalent value used when the node contains null.
- treatTrueLike() — Sets the equivalent value used when the node contains true.
- validate() — Sets an expression to run for the validation.