Symfony\Component\Config\Definition\BaseNode
The base node class
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class BaseNode
implements
NodeInterface
{
- // members
- protected $name;
- protected $parent;
- protected $normalizationClosures;
- protected $finalValidationClosures;
- protected $allowOverwrite;
- protected $required;
- protected $equivalentValues;
- protected array $attributes;
- // methods
- public void __construct()
- public void setAttribute()
- public void getAttribute()
- public void hasAttribute()
- public void getAttributes()
- public void setAttributes()
- public void removeAttribute()
- public void setInfo()
- public string getInfo()
- public void setExample()
- public string|array getExample()
- public void addEquivalentValue()
- public void setRequired()
- public void setAllowOverwrite()
- public void setNormalizationClosures()
- public void setFinalValidationClosures()
- public Boolean isRequired()
- public string getName()
- public string getPath()
- public final mixed merge()
- public final mixed normalize()
- protected $value preNormalize()
- public final mixed finalize()
- protected abstract void validateType()
- protected abstract mixed normalizeValue()
- protected abstract mixed mergeValues()
- protected abstract mixed finalizeValue()
Hierarchy
Extended by
- Symfony\Component\Config\Definition\NumericNode
- Symfony\Component\Config\Definition\BooleanNode
- Symfony\Component\Config\Definition\EnumNode
- Symfony\Component\Config\Definition\PrototypedArrayNode
- Symfony\Component\Config\Definition\ArrayNode
- Symfony\Component\Config\Definition\IntegerNode
- Symfony\Component\Config\Definition\ScalarNode
- Symfony\Component\Config\Definition\FloatNode
- Symfony\Component\Config\Definition\VariableNode
Implements
Members
protected
- $allowOverwrite
- $attributes
- $equivalentValues
- $finalValidationClosures
- $name
- $normalizationClosures
- $parent
- $required
Methods
protected
- finalizeValue() — Finalizes a value.
- mergeValues() — Merges two values together.
- normalizeValue() — Normalizes the value.
- preNormalize() — Normalizes the value before any other normalization is applied.
- validateType() — Validates the type of a Node.
public
- __construct() — Constructor.
- addEquivalentValue() — Adds an equivalent value.
- finalize() — Finalizes a value, applying all finalization closures.
- getAttribute()
- getAttributes()
- getExample() — Retrieves the example configuration for this node.
- getInfo() — Returns info message.
- getName() — Returns the name of this node
- getPath() — Retrieves the path of this node.
- hasAttribute()
- isRequired() — Checks if this node is required.
- merge() — Merges two values together.
- normalize() — Normalizes a value, applying all normalization closures.
- removeAttribute()
- setAllowOverwrite() — Sets if this node can be overridden.
- setAttribute()
- setAttributes()
- setExample() — Sets the example configuration for this node.
- setFinalValidationClosures() — Sets the closures used for final validation.
- setInfo() — Sets an info message.
- setNormalizationClosures() — Sets the closures used for normalization.
- setRequired() — Set this node as required.