public function ConstraintViolationList::offsetSet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ConstraintViolationList.php \Symfony\Component\Validator\ConstraintViolationList::offsetSet()
File
- vendor/
symfony/ validator/ ConstraintViolationList.php, line 143
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function offsetSet($offset, $violation) {
if (null === $offset) {
$this
->add($violation);
}
else {
$this
->set($offset, $violation);
}
}