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\VarDumper\Caster;
14 use Symfony\Component\VarDumper\Cloner\Stub;
17 * Represents a PHP constant and its value.
19 * @author Nicolas Grekas <p@tchwork.com>
21 class ConstStub extends Stub
23 public function __construct($name, $value)
26 $this->value = $value;
29 public function __toString()
31 return (string) $this->value;