Spaces:
Runtime error
Runtime error
Download symfony/config/Definition/Builder/MergeBuilder.php from Alcazard/vibe-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/config/Definition/Builder/MergeBuilder.php
- Command line
-
hf download hf://spaces/Alcazard/vibe-coding-api/symfony/config/Definition/Builder/MergeBuilder.php
-
curl -L -o MergeBuilder.php https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/config/Definition/Builder/MergeBuilder.php
1.26 kB
| /* | |
| * This file is part of the Symfony package. | |
| * | |
| * (c) Fabien Potencier <fabien@symfony.com> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ | |
| namespace Symfony\Component\Config\Definition\Builder; | |
| /** | |
| * This class builds merge conditions. | |
| * | |
| * @template T of NodeDefinition | |
| * | |
| * @author Johannes M. Schmitt <schmittjoh@gmail.com> | |
| */ | |
| class MergeBuilder | |
| { | |
| public bool $allowFalse = false; | |
| public bool $allowOverwrite = true; | |
| /** | |
| * @param T $node | |
| */ | |
| public function __construct( | |
| protected NodeDefinition $node, | |
| ) { | |
| } | |
| /** | |
| * Sets whether the node can be unset. | |
| * | |
| * @return $this | |
| */ | |
| public function allowUnset(bool $allow = true): static | |
| { | |
| $this->allowFalse = $allow; | |
| return $this; | |
| } | |
| /** | |
| * Sets whether the node can be overwritten. | |
| * | |
| * @return $this | |
| */ | |
| public function denyOverwrite(bool $deny = true): static | |
| { | |
| $this->allowOverwrite = !$deny; | |
| return $this; | |
| } | |
| /** | |
| * Returns the related node. | |
| * | |
| * @return T | |
| */ | |
| public function end(): NodeDefinition | |
| { | |
| return $this->node; | |
| } | |
| } | |