You are here

interface ConstraintViolationListInterface in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/ConstraintViolationListInterface.php \Symfony\Component\Validator\ConstraintViolationListInterface

A list of constraint violations.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • interface \Symfony\Component\Validator\ConstraintViolationListInterface extends \Symfony\Component\Validator\Traversable \Symfony\Component\Validator\Countable \Symfony\Component\Validator\ArrayAccess

Expanded class hierarchy of ConstraintViolationListInterface

All classes that implement ConstraintViolationListInterface

9 files declare their use of ConstraintViolationListInterface
ContextualValidatorInterface.php in vendor/symfony/validator/Validator/ContextualValidatorInterface.php
EntityConstraintViolationListInterface.php in core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php
Contains \Drupal\Core\Entity\EntityConstraintViolationListInterface.
EntityFormDisplay.php in core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
Contains \Drupal\Core\Entity\Entity\EntityFormDisplay.
FileWidget.php in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Contains \Drupal\file\Plugin\Field\FieldWidget\FileWidget.
FilterAPITest.php in core/modules/filter/src/Tests/FilterAPITest.php
Contains \Drupal\filter\Tests\FilterAPITest.

... See full list

File

vendor/symfony/validator/ConstraintViolationListInterface.php, line 19

Namespace

Symfony\Component\Validator
View source
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess {

  /**
   * Adds a constraint violation to this list.
   *
   * @param ConstraintViolationInterface $violation The violation to add.
   */
  public function add(ConstraintViolationInterface $violation);

  /**
   * Merges an existing violation list into this list.
   *
   * @param ConstraintViolationListInterface $otherList The list to merge.
   */
  public function addAll(ConstraintViolationListInterface $otherList);

  /**
   * Returns the violation at a given offset.
   *
   * @param int $offset The offset of the violation.
   *
   * @return ConstraintViolationInterface The violation.
   *
   * @throws \OutOfBoundsException If the offset does not exist.
   */
  public function get($offset);

  /**
   * Returns whether the given offset exists.
   *
   * @param int $offset The violation offset.
   *
   * @return bool Whether the offset exists.
   */
  public function has($offset);

  /**
   * Sets a violation at a given offset.
   *
   * @param int                          $offset    The violation offset.
   * @param ConstraintViolationInterface $violation The violation.
   */
  public function set($offset, ConstraintViolationInterface $violation);

  /**
   * Removes a violation at a given offset.
   *
   * @param int $offset The offset to remove.
   */
  public function remove($offset);

}

Members

Namesort descending Modifiers Type Description Overrides
ConstraintViolationListInterface::add public function Adds a constraint violation to this list. 1
ConstraintViolationListInterface::addAll public function Merges an existing violation list into this list. 1
ConstraintViolationListInterface::get public function Returns the violation at a given offset. 1
ConstraintViolationListInterface::has public function Returns whether the given offset exists. 1
ConstraintViolationListInterface::remove public function Removes a violation at a given offset. 1
ConstraintViolationListInterface::set public function Sets a violation at a given offset. 1