@@ 60-71 (lines=12) @@ | ||
57 | /** |
|
58 | * @return bool |
|
59 | */ |
|
60 | public function isValid() |
|
61 | { |
|
62 | $this->errorMessages = []; |
|
63 | $this->fieldCollection->rewind(); |
|
64 | while ($this->fieldCollection->valid()) { |
|
65 | $this->checkForErrors($this->fieldCollection->current()); |
|
66 | $this->fieldCollection->next(); |
|
67 | } |
|
68 | $this->fieldCollection->rewind(); |
|
69 | $count = count($this->errorMessages); |
|
70 | return $count == 0; |
|
71 | } |
|
72 | ||
73 | /** |
|
74 | * @param FieldInterface $field |
@@ 176-186 (lines=11) @@ | ||
173 | * @return bool |
|
174 | * @throws Exception If validation of $value is impossible |
|
175 | */ |
|
176 | public function isValid() |
|
177 | { |
|
178 | $this->errorMessages = []; |
|
179 | $this->validatorCollection->rewind(); |
|
180 | while ($this->validatorCollection->valid()) { |
|
181 | $this->checkForErrors($this->validatorCollection->current()); |
|
182 | $this->validatorCollection->next(); |
|
183 | } |
|
184 | $count = count($this->errorMessages); |
|
185 | return $count == 0; |
|
186 | } |
|
187 | ||
188 | /** |
|
189 | * @param ValidatorInterface $validator |