1 | <?php |
||
19 | class ClassImplementsValidator extends AbstractValidator |
||
20 | { |
||
21 | const ERROR_CODE_CLASS_NOT_FOUND = 1487710245; |
||
22 | const ERROR_CODE_CLASS_NOT_VALID = 1487710370; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $supportedOptions = [ |
||
28 | 'interface' => [ |
||
29 | '', |
||
30 | 'Name of the interface that the class name should implement.', |
||
31 | 'string', |
||
32 | true |
||
33 | ] |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Checks if the value is an existing class. |
||
38 | * |
||
39 | * @param mixed $value The value that should be validated. |
||
40 | */ |
||
41 | public function isValid($value) |
||
61 | } |
||
62 |