123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace Symfony\Component\VarDumper\Caster;
- use Symfony\Component\VarDumper\Cloner\Stub;
- class ConstStub extends Stub
- {
- public function __construct(string $name, $value = null)
- {
- $this->class = $name;
- $this->value = 1 < \func_num_args() ? $value : $name;
- }
-
- public function __toString()
- {
- return (string) $this->value;
- }
- }
|