19declare(strict_types=1);
35 static function ($value) use ($other):
bool {
36 foreach ($other as $constraint) {
37 if ($constraint->accepts($value)) {
44 static function ($value) use ($other):
string {
47 foreach ($other as $constraint) {
48 $problems[] = $constraint->getErrorMessage($value);
51 return 'Please fix one of these: ' . implode(
', ', array_filter($problems));
__construct(array $other, 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.