interface ConstraintViolationListInterface implementsTraversable,Countable,ArrayAccess

A list of constraint violations.

Methods

void
add(ConstraintViolationInterface$violation)

Adds a constraint violation to this list.

void
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.

void
set(int$offset,ConstraintViolationInterface$violation)

Sets a violation at a given offset.

void
remove(int$offset)

Removes a violation at a given offset.

string
__toString()

Converts the violation into a string for debugging purposes.

Details

void add(ConstraintViolationInterface$violation)

Adds a constraint violation to this list.

Parameters

ConstraintViolationInterface $violation

Return Value

void

void addAll(ConstraintViolationListInterface$otherList)

Merges an existing violation list into this list.

Parameters

ConstraintViolationListInterface $otherList

Return Value

void

ConstraintViolationInterface get(int$offset)

Returns the violation at a given offset.

Parameters

int $offset The offset of the violation

Return Value

ConstraintViolationInterface

Exceptions

OutOfBoundsException if the offset does not exist

bool has(int$offset)

Returns whether the given offset exists.

Parameters

int $offset The violation offset

Return Value

bool

void set(int$offset,ConstraintViolationInterface$violation)

Sets a violation at a given offset.

Parameters

int $offset
ConstraintViolationInterface $violation

Return Value

void

void remove(int$offset)

Removes a violation at a given offset.

Parameters

int $offset The offset to remove

Return Value

void

string __toString()

Converts the violation into a string for debugging purposes.

Return Value

string