4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Definition\Builder;
15 * An interface that must be implemented by nodes which can have children.
17 * @author Victor Berchet <victor@suumit.com>
19 interface ParentNodeDefinitionInterface
22 * Returns a builder to add children nodes.
26 public function children();
29 * Appends a node definition.
35 * ->scalarNode('foo')->end()
36 * ->scalarNode('baz')->end()
37 * ->append($this->getBarNodeDefinition())
43 public function append(NodeDefinition $node);
46 * Sets a custom children builder.
48 public function setBuilder(NodeBuilder $builder);