class ConstraintViolationList implements IteratorAggregate, Countable, ArrayAccess
A list of ConstrainViolation objects.
Methods
|
__construct(array $violations = array())
Creates a new constraint violation list. |
||
| string | __toString() | |
|
add(ConstraintViolation $violation)
Add a ConstraintViolation to this list. |
||
|
addAll(ConstraintViolationList $otherList)
Merge an existing ConstraintViolationList into this list. |
||
| ConstraintViolation |
get(integer $offset)
Returns the violation at a given offset. |
|
| Boolean |
has(integer $offset)
Returns whether the given offset exists. |
|
|
set(integer $offset, ConstraintViolation $violation)
Sets a violation at a given offset. |
||
|
remove(integer $offset)
Removes a violation at a given offset. |
||
| getIterator() | ||
| count() | ||
| offsetExists($offset) | ||
| offsetGet($offset) | ||
| offsetSet($offset, $violation) | ||
| offsetUnset($offset) |
Details
at line 35
public
__construct(array $violations = array())
Creates a new constraint violation list.
at line 45
public string
__toString()
at line 63
public
add(ConstraintViolation $violation)
Add a ConstraintViolation to this list.
at line 75
public
addAll(ConstraintViolationList $otherList)
Merge an existing ConstraintViolationList into this list.
at line 91
public ConstraintViolation
get(integer $offset)
Returns the violation at a given offset.
at line 107
public Boolean
has(integer $offset)
Returns whether the given offset exists.
at line 118
public
set(integer $offset, ConstraintViolation $violation)
Sets a violation at a given offset.
at line 128
public
remove(integer $offset)
Removes a violation at a given offset.