Returns the violation at a given offset.
@api
integer $offset The offset of the violation.:
ConstraintViolationInterface The violation.
\OutOfBoundsException If the offset does not exist.
Overrides ConstraintViolationListInterface::get
public function get($offset) {
if (!isset($this->violations[$offset])) {
throw new \OutOfBoundsException(sprintf('The offset "%s" does not exist.', $offset));
}
return $this->violations[$offset];
}