Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\VarDumper\Caster; Chris@0: Chris@0: use Symfony\Component\VarDumper\Cloner\Stub; Chris@0: Chris@0: /** Chris@0: * Represents a PHP constant and its value. Chris@0: * Chris@0: * @author Nicolas Grekas
Chris@0: */ Chris@0: class ConstStub extends Stub Chris@0: { Chris@0: public function __construct($name, $value) Chris@0: { Chris@0: $this->class = $name; Chris@0: $this->value = $value; Chris@0: } Chris@0: Chris@0: public function __toString() Chris@0: { Chris@0: return (string) $this->value; Chris@0: } Chris@0: }