interface PrototypeNodeInterface implements NodeInterface
This interface must be implemented by nodes which can be used as prototypes.
string | getName() Returns the name of the node. | from NodeInterface |
string | getPath() Returns the path of the node. | from NodeInterface |
bool | isRequired() Returns true when the node is required. | from NodeInterface |
bool | hasDefaultValue() Returns true when the node has a default value. | from NodeInterface |
mixed | getDefaultValue() Returns the default value of the node. | from NodeInterface |
mixed | normalize(mixed $value) Normalizes a value. | from NodeInterface |
mixed | merge(mixed $leftSide, mixed $rightSide) Merges two values together. | from NodeInterface |
mixed | finalize(mixed $value) Finalizes a value. | from NodeInterface |
setName(string $name) Sets the name of the node. |
Returns the name of the node.
string | The name of the node |
Returns the path of the node.
string | The node path |
Returns true when the node is required.
bool | If the node is required |
Returns true when the node has a default value.
bool | If the node has a default value |
Returns the default value of the node.
mixed | The default value |
RuntimeException | if the node has no default value |
Normalizes a value.
mixed | $value | The value to normalize |
mixed | The normalized value |
InvalidTypeException | if the value type is invalid |
Merges two values together.
mixed | $leftSide | |
mixed | $rightSide |
mixed | The merged value |
ForbiddenOverwriteException | if the configuration path cannot be overwritten |
InvalidTypeException | if the value type is invalid |
Finalizes a value.
mixed | $value | The value to finalize |
mixed | The finalized value |
InvalidTypeException | if the value type is invalid |
InvalidConfigurationException | if the value is invalid configuration |
Sets the name of the node.
string | $name | The name of the node |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Definition/PrototypeNodeInterface.html