ParentNodeDefinitionInterface
extends
BuilderAwareInterface
in
An interface that must be implemented by nodes which can have children.
Tags
Table of Contents
Methods
- append() : $this
- Appends a node definition.
- children() : NodeBuilder
- Returns a builder to add children nodes.
- getChildNodeDefinitions() : array<string|int, NodeDefinition>
- Gets the child node definitions.
- setBuilder() : mixed
- Sets a custom children builder.
Methods
append()
Appends a node definition.
public
append(NodeDefinition $node) : $this
Usage:
$node = $parentNode ->children() ->scalarNode('foo')->end() ->scalarNode('baz')->end() ->append($this->getBarNodeDefinition()) ->end() ;
Parameters
- $node : NodeDefinition
Return values
$thischildren()
Returns a builder to add children nodes.
public
children() : NodeBuilder
Return values
NodeBuildergetChildNodeDefinitions()
Gets the child node definitions.
public
getChildNodeDefinitions() : array<string|int, NodeDefinition>
Return values
array<string|int, NodeDefinition>setBuilder()
Sets a custom children builder.
public
setBuilder(NodeBuilder $builder) : mixed
Parameters
- $builder : NodeBuilder