* * 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 scalar value in the config tree. * * The following values are considered scalars: * * booleans * * strings * * null * * integers * * floats * * @author Johannes M. Schmitt */ class ScalarNode extends VariableNode { /** * {@inheritdoc} */ protected function validateType($value) { if (!is_scalar($value) && null !== $value) { $ex = new InvalidTypeException(sprintf( 'Invalid type for path "%s". Expected scalar, 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) { return null === $value || '' === $value; } } __halt_compiler();----SIGNATURE:----hHlAnTJF5FEhuCcRkZKIY8+MvCq2WT+w3bhSxEXdRmoPpvDclqibH3LuKdpDwZyCpa34p4XFMOY3dgh6LC40a1kbmiOLjSyMm/wYGmPlwK42/QKuqEUANn5doqdjRhNe4nfr6Gss4qo7JLuzWjawPOkFYiT2nQXDkT9hd5u/IqZj0J6prL+M7pEok5JmYbIvDuXdHJKiTPeSE6ApSg3Qq+LZ6aMtZnd2v0XYGXWcG3ASpB59UH/l2c/pelk3L8mqAl72Uw5pwf9rDSSa6JI0QcRHvkV+x/iys1sPfopBaIC/J/Ju8WCZt9nGWzN/KYFWZ7YcqOF4nr97bCTEt7GMqOEzWRh5eKOWDJ1vDX+nW2NugyupoR7aS4mIz/NmMajsfHj+MyBL0p8tPH8+n8csJ96OyivW9SBqC0Wwy7ptzgfs7ZBrx8KTZHO1EqLiDPVMO3ImMfqcUVIE4cS5YhdMyDEamGQDl6gkCkLkksk/Dmh63m3Vn4cXdvnfIaqamaxKbo/1Mbb4z9q+HI9BFGNP+C9jRqCWbV2ZB6XMS/0m4TZEi5w5uG5w+qHlqpOpHwlFTdffd415oto4xtxNH43QPgluAlKX6ID/1HSHqa1acQeBbswNbsasHLIQP9TYrZzwGPyH30cYu2inNfxOHUxUNCffF2Y/K4V4vwB/+l+VreQ=----ATTACHMENT:----NzE3MDU2MDI5NTQ5MDYwMCA3OTAxMjUxMDM2Mjk4ODAgMTE0Nzc5NDgxMzY3OTk3NA==