A list of constraint violations.
@author Bernhard Schussek <bschussek@gmail.com>
@api
Expanded class hierarchy of ConstraintViolationListInterface
All classes that implement ConstraintViolationListInterface
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess {
/**
* Adds a constraint violation to this list.
*
* @param ConstraintViolationInterface $violation The violation to add.
*
* @api
*/
public function add(ConstraintViolationInterface $violation);
/**
* Merges an existing violation list into this list.
*
* @param ConstraintViolationListInterface $otherList The list to merge.
*
* @api
*/
public function addAll(ConstraintViolationListInterface $otherList);
/**
* Returns the violation at a given offset.
*
* @param integer $offset The offset of the violation.
*
* @return ConstraintViolationInterface The violation.
*
* @throws \OutOfBoundsException If the offset does not exist.
*
* @api
*/
public function get($offset);
/**
* Returns whether the given offset exists.
*
* @param integer $offset The violation offset.
*
* @return Boolean Whether the offset exists.
*
* @api
*/
public function has($offset);
/**
* Sets a violation at a given offset.
*
* @param integer $offset The violation offset.
* @param ConstraintViolationInterface $violation The violation.
*
* @api
*/
public function set($offset, ConstraintViolationInterface $violation);
/**
* Removes a violation at a given offset.
*
* @param integer $offset The offset to remove.
*
* @api
*/
public function remove($offset);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintViolationListInterface:: |
public | function | Adds a constraint violation to this list. | 1 |
ConstraintViolationListInterface:: |
public | function | Merges an existing violation list into this list. | 1 |
ConstraintViolationListInterface:: |
public | function | Returns the violation at a given offset. | 1 |
ConstraintViolationListInterface:: |
public | function | Returns whether the given offset exists. | 1 |
ConstraintViolationListInterface:: |
public | function | Removes a violation at a given offset. | 1 |
ConstraintViolationListInterface:: |
public | function | Sets a violation at a given offset. | 1 |