ConstraintViolationList
class ConstraintViolationList implements IteratorAggregate, ConstraintViolationListInterface
Default implementation of {@ConstraintViolationListInterface}.
Methods
Creates a new constraint violation list.
Converts the violation into a string for debugging purposes.
Merges an existing violation list into this list.
Returns the violation at a given offset.
Returns whether the given offset exists.
Removes a violation at a given offset.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Details
at line line 31
__construct(array $violations = array())
Creates a new constraint violation list.
at line line 43
string
__toString()
Converts the violation into a string for debugging purposes.
at line line 57
add(ConstraintViolationInterface $violation)
Adds a constraint violation to this list.
at line line 65
addAll(ConstraintViolationListInterface $otherList)
Merges an existing violation list into this list.
at line line 75
ConstraintViolationInterface
get(int $offset)
Returns the violation at a given offset.
at line line 87
bool
has(int $offset)
Returns whether the given offset exists.
at line line 95
set(int $offset, ConstraintViolationInterface $violation)
Sets a violation at a given offset.
at line line 103
remove(int $offset)
Removes a violation at a given offset.
at line line 111
getIterator()
{@inheritdoc}
at line line 119
count()
{@inheritdoc}
at line line 127
offsetExists($offset)
{@inheritdoc}
at line line 135
offsetGet($offset)
{@inheritdoc}
at line line 143
offsetSet($offset, $violation)
{@inheritdoc}
at line line 155
offsetUnset($offset)
{@inheritdoc}