BaseNode
class BaseNode implements NodeInterface
The base node class.
Methods
No description
No description
No description
No description
No description
No description
Sets an info message.
Returns info message.
Sets the example configuration for this node.
Retrieves the example configuration for this node.
Adds an equivalent value.
Set this node as required.
Sets if this node can be overridden.
Sets the closures used for normalization.
Sets the closures used for final validation.
Checks if this node is required.
Returns the name of this node.
Retrieves the path of this node.
Merges two values together.
Normalizes a value, applying all normalization closures.
Returns parent node for this node.
Finalizes a value, applying all finalization closures.
Details
at line line 43
__construct(string $name, NodeInterface $parent = null)
Constructor.
at line line 53
setAttribute($key, $value)
at line line 58
getAttribute($key, $default = null)
at line line 63
hasAttribute($key)
at line line 68
getAttributes()
at line line 73
setAttributes(array $attributes)
at line line 78
removeAttribute($key)
at line line 88
setInfo(string $info)
Sets an info message.
at line line 98
string
getInfo()
Returns info message.
at line line 108
setExample(string|array $example)
Sets the example configuration for this node.
at line line 118
string|array
getExample()
Retrieves the example configuration for this node.
at line line 129
addEquivalentValue(mixed $originalValue, mixed $equivalentValue)
Adds an equivalent value.
at line line 139
setRequired(bool $boolean)
Set this node as required.
at line line 149
setAllowOverwrite(bool $allow)
Sets if this node can be overridden.
at line line 159
setNormalizationClosures(array $closures)
Sets the closures used for normalization.
at line line 169
setFinalValidationClosures(array $closures)
Sets the closures used for final validation.
at line line 179
bool
isRequired()
Checks if this node is required.
at line line 189
string
getName()
Returns the name of this node.
at line line 199
string
getPath()
Retrieves the path of this node.
at line line 220
final mixed
merge(mixed $leftSide, mixed $rightSide)
Merges two values together.
at line line 244
final mixed
normalize(mixed $value)
Normalizes a value, applying all normalization closures.
at line line 284
NodeInterface|null
getParent()
Returns parent node for this node.
at line line 299
final mixed
finalize(mixed $value)
Finalizes a value, applying all finalization closures.