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) |
||
43 | |||
44 | /** |
||
45 | * Get the validation message |
||
46 | * |
||
47 | * @param ValidatorInterface $validator |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getMessages(ValidatorInterface $validator) |
||
54 | |||
55 | /** |
||
56 | * @param ValidatorInterface $validator |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function canHandle(ValidatorInterface $validator) |
||
63 | } |
||
64 |