Sets a violation at a given offset.
@api
integer $offset The violation offset.:
ConstraintViolationInterface $violation The violation.:
Overrides ConstraintViolationListInterface::set
public function set($offset, ConstraintViolationInterface $violation) {
$this->violations[$offset] = $violation;
}