public function ConstraintViolationList::set in Plug 7
Sets a violation at a given offset.
@api
Parameters
int $offset The violation offset.:
ConstraintViolationInterface $violation The violation.:
Overrides ConstraintViolationListInterface::set
1 call to ConstraintViolationList::set()
- ConstraintViolationList::offsetSet in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationList.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationList.php, line 95
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function set($offset, ConstraintViolationInterface $violation) {
$this->violations[$offset] = $violation;
}