layfi-earn/vendor/symfony/var-dumper/Caster/EnumStub.php
2025-01-27 20:49:47 +08:00

30 lines
596 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Caster;
use Symfony\Component\VarDumper\Cloner\Stub;
/**
* Represents an enumeration of values.
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class EnumStub extends Stub
{
public function __construct(
array $values,
public bool $dumpKeys = true,
) {
$this->value = $values;
}
}