ConstraintViolationList

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(登录查看完整内容