Creates a new constraint violation list.
ConstraintViolationInterface[] $violations The constraint violations to add to the list:
public function __construct(array $violations = array()) {
foreach ($violations as $violation) {
$this
->add($violation);
}
}