[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Symfony\Component\Config\Definition\Builder; 13 14 use Symfony\Component\Config\Definition\BooleanNode; 15 use Symfony\Component\Config\Definition\Exception\InvalidDefinitionException; 16 17 /** 18 * This class provides a fluent interface for defining a node. 19 * 20 * @author Johannes M. Schmitt <schmittjoh@gmail.com> 21 */ 22 class BooleanNodeDefinition extends ScalarNodeDefinition 23 { 24 /** 25 * {@inheritdoc} 26 */ 27 public function __construct($name, NodeParentInterface $parent = null) 28 { 29 parent::__construct($name, $parent); 30 31 $this->nullEquivalent = true; 32 } 33 34 /** 35 * Instantiate a Node. 36 * 37 * @return BooleanNode The node 38 */ 39 protected function instantiateNode() 40 { 41 return new BooleanNode($this->name, $this->parent); 42 } 43 44 /** 45 * {@inheritdoc} 46 * 47 * @throws InvalidDefinitionException 48 */ 49 public function cannotBeEmpty() 50 { 51 throw new InvalidDefinitionException('->cannotBeEmpty() is not applicable to BooleanNodeDefinition.'); 52 } 53 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |