public function ConstraintViolationListInterface::set

Sets a violation at a given offset.

@api

Parameters

integer $offset The violation offset.:

ConstraintViolationInterface $violation The violation.:

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

File

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

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function set($offset, ConstraintViolationInterface $violation);