* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition; use Symfony\Component\Config\Definition\Exception\InvalidTypeException; /** * This node represents a Boolean value in the config tree. * * @author Johannes M. Schmitt */ class BooleanNode extends ScalarNode { /** * {@inheritdoc} */ protected function validateType($value) { if (!is_bool($value)) { $ex = new InvalidTypeException(sprintf( 'Invalid type for path "%s". Expected boolean, but got %s.', $this->getPath(), gettype($value) )); if ($hint = $this->getInfo()) { $ex->addHint($hint); } $ex->setPath($this->getPath()); throw $ex; } } /** * {@inheritdoc} */ protected function isValueEmpty($value) { // a boolean value cannot be empty return false; } } __halt_compiler();----SIGNATURE:----GSxW22nLDOtr6M1CmrailMF2UBFnB68JKgegwzjea4RKGRYfUFuRn1RmKGFZ2laqNCTgnbOTuu6hiGRj4fEkedNkGpFaqmKz3kg/bwJDfdaOx9E67MdYcnwIp7oz5d3ueu7xAh4Fl53m2H1e9f7f0Jp0Jv1bWCnVcCDfJVYoWuLxx3qOoToPE5tSqRTazv30//F1ibxn+CvXulIJo0e634NArx3s6jzvSAY0uuHWQZtJ3jDrMcsN42SiWvNVDBPpzR6RWLd2eeJm3N10X4ZPmEnk5M/REohndN4XLYR94FqbyZ6sx2r3buBMQmI2gm2CTDdlKrIvnc5pts3B9m57PSZEbF+F06Hk83LrzdT7sYB7j65ff6HmIw9Aska8EIigfDTrzf4vOBnQumEzly4aff3ljg2OcDQwRqi7kqwAiI5damLceCUn/dhYhcmr2er1CnoFfdRZc2gnaS/XZJ+rMvKJmCtYe83vK3ewwLF5ngztWx1ZLhEBtEX1rVuJqeDW5LLkTXiKHzFz5io4yE3fzN+61wmGA5VtOI4K9F9OenMiNZvB1A1MeWl2FxoSjzE/2Cuk0FKQPEgRT5dWUimJW1OEGrE4OCO6ve+WMgyPJrfmdogmbNaqG/4IkU2Nb0eV2KOI0oF9m+vvT5tg6TEn5l/Rzq+5TBBU5T2G/xMFdqk=----ATTACHMENT:----ODQ3OTgwNTkxOTQzODYyNiA1ODE5NjM1OTM3MjMyMjU2IDIzMDYwMzMxMDI5MTA4Nw==