1 | <?php |
||
17 | class Regex extends AbstractRule |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Get the validation rules |
||
22 | * |
||
23 | * @param ValidatorInterface $validator |
||
24 | * @param ElementInterface $element |
||
25 | * @return array |
||
26 | */ |
||
27 | public function getRules(ValidatorInterface $validator, ElementInterface $element = null) |
||
34 | |||
35 | /** |
||
36 | * Get the validation message |
||
37 | * |
||
38 | * @param ValidatorInterface $validator |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getMessages(ValidatorInterface $validator) |
||
45 | |||
46 | /** |
||
47 | * @param ValidatorInterface $validator |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function canHandle(ValidatorInterface $validator) |
||
54 | } |