1 | <?php |
||
19 | class Contains implements ValidatorInterface { |
||
20 | |||
21 | /** |
||
22 | * Throws an exception if the parameters don't fullfill the expected |
||
23 | * parameter count. |
||
24 | * |
||
25 | * @param integer $parameterAmount |
||
26 | * the amount of expected parameters |
||
27 | */ |
||
28 | protected function validateParameterCount($parameterAmount) { |
||
33 | |||
34 | /** |
||
35 | * Adjusts value and parameters to be case insensitive if the second |
||
36 | * parameter says so or is not given. |
||
37 | * |
||
38 | * @param mixed $value |
||
39 | * the value to validate |
||
40 | * |
||
41 | * @param array $parameters |
||
42 | * the other parameters the validator need |
||
43 | */ |
||
44 | protected function adjustCaseInsensitive(&$value, &$parameters) { |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function isValid($value, array $parameters) { |
||
63 | } |
||
64 |