ConstraintViolationListInterface
extends
Traversable, Countable, ArrayAccess
in
A list of constraint violations.
Tags
Table of Contents
Methods
- add() : mixed
- Adds a constraint violation to this list.
- addAll() : mixed
- Merges an existing violation list into this list.
- get() : ConstraintViolationInterface
- Returns the violation at a given offset.
- has() : bool
- Returns whether the given offset exists.
- remove() : mixed
- Removes a violation at a given offset.
- set() : mixed
- Sets a violation at a given offset.
Methods
add()
Adds a constraint violation to this list.
public
add(ConstraintViolationInterface $violation) : mixed
Parameters
- $violation : ConstraintViolationInterface
addAll()
Merges an existing violation list into this list.
public
addAll(self $otherList) : mixed
Parameters
- $otherList : self
get()
Returns the violation at a given offset.
public
get(int $offset) : ConstraintViolationInterface
Parameters
- $offset : int
-
The offset of the violation
Tags
Return values
ConstraintViolationInterfacehas()
Returns whether the given offset exists.
public
has(int $offset) : bool
Parameters
- $offset : int
-
The violation offset
Return values
boolremove()
Removes a violation at a given offset.
public
remove(int $offset) : mixed
Parameters
- $offset : int
-
The offset to remove
set()
Sets a violation at a given offset.
public
set(int $offset, ConstraintViolationInterface $violation) : mixed
Parameters
- $offset : int
-
The violation offset
- $violation : ConstraintViolationInterface