19 declare(strict_types=1);
37 static function ($value) use ($other):
bool {
38 foreach ($other as $constraint) {
39 if ($constraint->accepts($value)) {
46 static function ($value) use ($other):
string {
49 foreach ($other as $constraint) {
50 $problems[] = $constraint->getErrorMessage($value);
53 return 'Please fix one of these: ' . implode(
', ', array_filter($problems));
Interface Observer Contains several chained tasks and infos about them.
A constraint encodes some resrtictions on values.
__construct(array $other, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
LogicalOr constructor.
__construct(Container $dic, ilPlugin $plugin)