19declare(strict_types=1);
41 function ($value) use ($constraints):
bool {
42 foreach ($constraints as $constraint) {
43 if (!$constraint->accepts($value)) {
44 $this->failed_constraint = $constraint;
51 function ($txt, $value):
string {
52 return $this->failed_constraint->getErrorMessage($value);
Constraint $failed_constraint
There's a test to show this state will never be visible SequentialTest::testCorrectErrorMessagesAfter...
__construct(array $constraints, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.