public function ConstraintViolationList::addAll in Plug 7
Merges an existing violation list into this list.
@api
Parameters
ConstraintViolationListInterface $otherList The list to merge.:
Overrides ConstraintViolationListInterface::addAll
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationList.php, line 65
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function addAll(ConstraintViolationListInterface $otherList) {
foreach ($otherList as $violation) {
$this->violations[] = $violation;
}
}