ConstraintViolationList::offsetSet()

offsetSet($offset, $violation) {@inheritdoc} Parameters $offset $violation

ConstraintViolationListInterface

interface ConstraintViolationListInterface implements Traversable, Countable, ArrayAccess A list of constraint violations. Methods add(ConstraintViolationInterface $violation) Adds a constraint violation to this list. addAll(ConstraintViolationListInterface $otherList) Merges an existing violation list into this list. ConstraintViolationInterface get(int $offset) Returns the violation at a given offset. bool has(int $offset) Returns whether the given offset exists. se

ConstraintViolationList::has()

bool has(int $offset) Returns whether the given offset exists. Parameters int $offset The violation offset Return Value bool Whether the offset exists

ConstraintViolationList::count()

count() {@inheritdoc}

ConstraintViolationList::addAll()

addAll(ConstraintViolationListInterface $otherList) Merges an existing violation list into this list. Parameters ConstraintViolationListInterface $otherList The list to merge

ConstraintViolationList::offsetGet()

offsetGet($offset) {@inheritdoc} Parameters $offset

ConstraintViolationList::offsetExists()

offsetExists($offset) {@inheritdoc} Parameters $offset

ConstraintViolationList::getIterator()

ArrayIterator|ConstraintViolationInterface[] getIterator() {@inheritdoc} Return Value ArrayIterator|ConstraintViolationInterface[]

ConstraintViolationList

class ConstraintViolationList implements IteratorAggregate, ConstraintViolationListInterface Default implementation of {@ConstraintViolationListInterface}. Methods __construct(array $violations = array()) Creates a new constraint violation list. string __toString() Converts the violation into a string for debugging purposes. add(ConstraintViolationInterface $violation) Adds a constraint violation to this list. addAll(ConstraintViolationListInterface $otherList) Merges an e

ConstraintViolationList::add()

add(ConstraintViolationInterface $violation) Adds a constraint violation to this list. Parameters ConstraintViolationInterface $violation The violation to add