Documentation

ParentNodeDefinitionInterface extends BuilderAwareInterface

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

Tags
author

Victor Berchet victor@suumit.com

Table of Contents

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
$this

Search results