1 | <?php |
||
20 | abstract class AbstractArray implements ValidatorInterface { |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Holds the invalid values. |
||
25 | */ |
||
26 | protected $invalidDetails; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Checks whether the given values are of the expected array data. |
||
31 | * |
||
32 | * @param mixed $values |
||
33 | * the potential array values to check |
||
34 | * @param Validator $validator |
||
35 | * the validator to check with |
||
36 | * @param array $rules |
||
37 | * the rules which the array data must fulfill |
||
38 | * |
||
39 | * @return boolean |
||
40 | * true if all the $values are valid, else false with the invalid details set |
||
41 | */ |
||
42 | protected abstract function isValidArray($values, Validator $validator, array $rules); |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function isValid($value, array $parameters) { |
||
57 | } |
||
58 |