| 1 | <?php |
||
| 14 | class EnumValidator extends ChoiceValidator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var EnumRegistryInterface |
||
| 18 | */ |
||
| 19 | private $enumRegistry; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param EnumRegistryInterface $enumRegistry |
||
| 23 | */ |
||
| 24 | 8 | public function __construct(EnumRegistryInterface $enumRegistry) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | 8 | public function validate($value, Constraint $constraint) |
|
| 56 | } |
||
| 57 |