composer package updates
[openemr.git] / vendor / symfony / config / Definition / Builder / ParentNodeDefinitionInterface.php
blob1bf2ad4bf6d9699f9a75dbc9271ead33745f3c78
1 <?php
3 /*
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;
14 /**
15 * An interface that must be implemented by nodes which can have children.
17 * @author Victor Berchet <victor@suumit.com>
19 interface ParentNodeDefinitionInterface
21 /**
22 * Returns a builder to add children nodes.
24 * @return NodeBuilder
26 public function children();
28 /**
29 * Appends a node definition.
31 * Usage:
33 * $node = $parentNode
34 * ->children()
35 * ->scalarNode('foo')->end()
36 * ->scalarNode('baz')->end()
37 * ->append($this->getBarNodeDefinition())
38 * ->end()
39 * ;
41 * @return $this
43 public function append(NodeDefinition $node);
45 /**
46 * Sets a custom children builder.
48 public function setBuilder(NodeBuilder $builder);