| Methods |
public
|
setNormalizeKeys(bool $normalizeKeys): void
|
#
|
protected
|
preNormalize(mixed $value): mixed
Namely, you mostly have foo_bar in YAML while you have foo-bar in XML.
After running this method, all keys areā¦
Namely, you mostly have foo_bar in YAML while you have foo-bar in XML.
After running this method, all keys are normalized to foo_bar.
If you have a mixed key like foo-bar_moo, it will not be altered.
The key will also not be altered if the target key already exists.
Overrides
|
#
|
public
|
getChildren(): array<string, NodeInterface>
Retrieves the children of this node.
Retrieves the children of this node.
|
#
|
public
|
setXmlRemappings(array $remappings): void
Sets the xml remappings that should be performed.
Sets the xml remappings that should be performed.
Parameters
| $remappings |
An array of the form [[string, string]]
|
|
#
|
public
|
getXmlRemappings(): array
Gets the xml remappings that should be performed.
Gets the xml remappings that should be performed.
Returns
an array of the form [[string, string]]
|
#
|
public
|
setAddIfNotSet(bool $boolean): void
Sets whether to add default values for this array if it has not been
defined in any of the configuration files.
Sets whether to add default values for this array if it has not been
defined in any of the configuration files.
|
#
|
public
|
setAllowFalse(bool $allow): void
Sets whether false is allowed as value indicating that the array should be unset.
Sets whether false is allowed as value indicating that the array should be unset.
|
#
|
public
|
setAllowNewKeys(bool $allow): void
Sets whether new keys can be defined in subsequent configurations.
Sets whether new keys can be defined in subsequent configurations.
|
#
|
public
|
setPerformDeepMerging(bool $boolean): void
Sets if deep merging should occur.
Sets if deep merging should occur.
|
#
|
public
|
setIgnoreExtraKeys(bool $boolean, bool $remove = true): void
Whether extra keys should just be ignored without an exception.
Whether extra keys should just be ignored without an exception.
Parameters
| $boolean |
To allow extra keys
|
| $remove |
To remove extra keys
|
|
#
|
public
|
shouldIgnoreExtraKeys(): bool
Returns true when extra keys should be ignored without an exception.
Returns true when extra keys should be ignored without an exception.
|
#
|
public
|
setName(string $name): void
Sets the name of the node.
Sets the name of the node.
Implements
|
#
|
public
|
hasDefaultValue(): bool
Returns true when the node has a default value.
Returns true when the node has a default value.
Overriden by
Implements
|
#
|
public
|
getDefaultValue(): mixed
Returns the default value of the node.
Returns the default value of the node.
Overriden by
Implements
|
#
|
public
|
addChild(NodeInterface $node): void
Adds a child node.
|
#
|
protected
|
finalizeValue(mixed $value): mixed
Finalizes a value.
Throws
Overriden by
Implements
|
#
|
protected
|
validateType(mixed $value): void
Validates the type of a Node.
Validates the type of a Node.
Implements
|
#
|
protected
|
normalizeValue(mixed $value): mixed
Normalizes the value.
Throws
Overriden by
Implements
|
#
|
protected
|
remapXml(array $value): array
Remaps multiple singular values to a single plural value.
Remaps multiple singular values to a single plural value.
|
#
|
protected
|
mergeValues(mixed $leftSide, mixed $rightSide): mixed
Merges two values together.
Merges two values together.
Throws
Overriden by
Implements
|
#
|
protected
|
allowPlaceholders(): bool
Tests if placeholder values are allowed for this node.
Tests if placeholder values are allowed for this node.
Overrides
|
#
|