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 * This class builds merge conditions.
17 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
22 public $allowFalse = false;
23 public $allowOverwrite = true;
28 * @param NodeDefinition $node The related node
30 public function __construct(NodeDefinition $node)
36 * Sets whether the node can be unset.
42 public function allowUnset($allow = true)
44 $this->allowFalse = $allow;
50 * Sets whether the node can be overwritten.
52 * @param bool $deny Whether the overwriting is forbidden or not
56 public function denyOverwrite($deny = true)
58 $this->allowOverwrite = !$deny;
64 * Returns the related node.
66 * @return NodeDefinition|ArrayNodeDefinition|VariableNodeDefinition