public function ConstraintViolationListInterface::get

Returns the violation at a given offset.

@api

Parameters

integer $offset The offset of the violation.:

Return value

ConstraintViolationInterface The violation.

Throws

\OutOfBoundsException If the offset does not exist.

1 method overrides ConstraintViolationListInterface::get()
ConstraintViolationList::get in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php
Returns the violation at a given offset.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationListInterface.php, line 52

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function get($offset);