Class

Symfony\Component\Validator\ConstraintViolationList

class ConstraintViolationList implements IteratorAggregate, Countable, ArrayAccess

An array-acting object that holds many ConstrainViolation instances.

Methods

string __toString()

add(ConstraintViolation $violation)

Add a ConstraintViolation to this list.

addAll(ConstraintViolationList $violations)

Merge an existing ConstraintViolationList into this list.

getIterator()

count()

offsetExists($offset)

offsetGet($offset)

offsetSet($offset, $value)

offsetUnset($offset)

Details

at line 26
public string __toString()

Return Value

string

at line 50
public add(ConstraintViolation $violation)

Add a ConstraintViolation to this list.

Parameters

ConstraintViolation $violation

at line 62
public addAll(ConstraintViolationList $violations)

Merge an existing ConstraintViolationList into this list.

Parameters

ConstraintViolationList $violations

at line 74
public getIterator()

See also

IteratorAggregate

at line 84
public count()

See also

Countable

at line 94
public offsetExists($offset)

Parameters

$offset

See also

ArrayAccess

at line 104
public offsetGet($offset)

Parameters

$offset

See also

ArrayAccess

at line 114
public offsetSet($offset, $value)

Parameters

$offset
$value

See also

ArrayAccess

at line 128
public offsetUnset($offset)

Parameters

$offset

See also

ArrayAccess