function ConstraintViolationListInterface::get
Returns the violation at a given offset.
Parameters
int $offset The offset of the violation:
Throws
OutOfBoundsException if the offset does not exist
1 method overrides ConstraintViolationListInterface::get()
- ConstraintViolationList::get in vendor/
symfony/ validator/ ConstraintViolationList.php - Returns the violation at a given offset.
File
-
vendor/
symfony/ validator/ ConstraintViolationListInterface.php, line 43
Class
- ConstraintViolationListInterface
- A list of constraint violations.
Namespace
Symfony\Component\ValidatorCode
public function get(int $offset) : ConstraintViolationInterface;