1 | <?php |
||
20 | class Collection implements ValidatorInterface { |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Holds the invalid array values. |
||
25 | */ |
||
26 | protected $invalidDetails; |
||
27 | |||
28 | /** |
||
29 | * Checks whether the given values are of the expected array. |
||
30 | * |
||
31 | * @param mixed $values |
||
32 | * the potential array values to check |
||
33 | * @param Validator $validator |
||
34 | * the validator to check with |
||
35 | * @param array $rule |
||
36 | * the rule which each element must fulfill |
||
37 | * |
||
38 | * @return boolean |
||
39 | * true if all the $values are a valid array, else false with the invalid details set |
||
40 | */ |
||
41 | protected function isValidCollection($values, Validator $validator, array $rule) { |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function isValid($value, array $parameters) { |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getInvalidDetails() { |
||
77 | } |
||
78 |