Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/ConstraintViolationListInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
18 */ | 18 */ |
19 interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess | 19 interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess |
20 { | 20 { |
21 /** | 21 /** |
22 * Adds a constraint violation to this list. | 22 * Adds a constraint violation to this list. |
23 * | |
24 * @param ConstraintViolationInterface $violation The violation to add | |
25 */ | 23 */ |
26 public function add(ConstraintViolationInterface $violation); | 24 public function add(ConstraintViolationInterface $violation); |
27 | 25 |
28 /** | 26 /** |
29 * Merges an existing violation list into this list. | 27 * Merges an existing violation list into this list. |
30 * | |
31 * @param ConstraintViolationListInterface $otherList The list to merge | |
32 */ | 28 */ |
33 public function addAll(ConstraintViolationListInterface $otherList); | 29 public function addAll(ConstraintViolationListInterface $otherList); |
34 | 30 |
35 /** | 31 /** |
36 * Returns the violation at a given offset. | 32 * Returns the violation at a given offset. |
37 * | 33 * |
38 * @param int $offset The offset of the violation | 34 * @param int $offset The offset of the violation |
39 * | 35 * |
40 * @return ConstraintViolationInterface The violation | 36 * @return ConstraintViolationInterface The violation |
41 * | 37 * |
42 * @throws \OutOfBoundsException If the offset does not exist. | 38 * @throws \OutOfBoundsException if the offset does not exist |
43 */ | 39 */ |
44 public function get($offset); | 40 public function get($offset); |
45 | 41 |
46 /** | 42 /** |
47 * Returns whether the given offset exists. | 43 * Returns whether the given offset exists. |