3 declare(strict_types=1);
38 static function ($value) use ($other):
bool {
39 foreach ($other as $constraint) {
40 if ($constraint->accepts($value)) {
47 static function ($value) use ($other):
string {
50 foreach ($other as $constraint) {
51 $problems[] = $constraint->getErrorMessage($value);
54 return 'Please fix one of these: ' . implode(
', ', array_filter($problems));
__construct(array $other, Data\Factory $data_factory, ilLanguage $lng)
LogicalOr constructor.
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...