interface ParentNodeDefinitionInterface implements BuilderAwareInterface

An interface that must be implemented by nodes which can have children.

Methods

setBuilder(NodeBuilder $builder)

Sets a custom children builder.

children()

Returns a builder to add children nodes.

$this
append(NodeDefinition $node)

Appends a node definition.

Details

in BuilderAwareInterface at line line 24
setBuilder(NodeBuilder $builder)

Sets a custom children builder.

Parameters

NodeBuilder $builder

at line line 28
NodeBuilder children()

Returns a builder to add children nodes.

Return Value

NodeBuilder

at line line 45
$this append(NodeDefinition $node)

Appends a node definition.

Usage:

$node = $parentNode
    ->children()
        ->scalarNode('foo')->end()
        ->scalarNode('baz')->end()
        ->append($this->getBarNodeDefinition())
    ->end()
;

Parameters

NodeDefinition $node

Return Value

$this