You are here

public function ConstraintViolationList::set in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolationList.php \Symfony\Component\Validator\ConstraintViolationList::set()

Sets a violation at a given offset.

Parameters

int $offset The violation offset.:

ConstraintViolationInterface $violation The violation.:

Overrides ConstraintViolationListInterface::set

2 calls to ConstraintViolationList::set()
ConstraintViolationList::offsetSet in vendor/symfony/validator/ConstraintViolationList.php
EntityConstraintViolationList::set in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Sets a violation at a given offset.
1 method overrides ConstraintViolationList::set()
EntityConstraintViolationList::set in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Sets a violation at a given offset.

File

vendor/symfony/validator/ConstraintViolationList.php, line 95

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function set($offset, ConstraintViolationInterface $violation) {
  $this->violations[$offset] = $violation;
}