31 $this->failed_constraints =
array();
32 foreach ($this->constraints as $constraint) {
33 if (!$constraint->accepts($value)) {
34 $this->failed_constraints[] = $constraint;
43 foreach ($this->failed_constraints as
$key => $constraint) {
44 $message .= $constraint->getErrorMessage($value);
A constraint encodes some resrtictions on values.
catch(Exception $e) $message
Create styles array
The data for the language used.
__construct(array $constraints, Data\Factory $data_factory)