1 | <?php |
||
19 | class ClassExtendsValidator extends AbstractValidator |
||
20 | { |
||
21 | const ERROR_CODE_CLASS_NOT_FOUND = 1487711134; |
||
22 | const ERROR_CODE_CLASS_NOT_VALID = 1487711239; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $supportedOptions = [ |
||
28 | 'class' => [ |
||
29 | '', |
||
30 | 'Name of the class that the original class should extend.', |
||
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 |