public function ConstraintViolationList::__toString in Plug 7
Converts the violation into a string for debugging purposes.
Return value
string The violation as string.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationList.php, line 43
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function __toString() {
$string = '';
foreach ($this->violations as $violation) {
$string .= $violation . "\n";
}
return $string;
}