Definition at line 27 of file Sequential.php.
◆ __construct()
| ILIAS\Refinery\Logical\Sequential::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
\ILIAS\Language\Language |
$lng |
|
) |
| |
- Parameters
-
Definition at line 38 of file Sequential.php.
39 {
41 function ($value) use ($constraints): bool {
42 foreach ($constraints as $constraint) {
43 if (!$constraint->accepts($value)) {
44 $this->failed_constraint = $constraint;
45 return false;
46 }
47 }
48
49 return true;
50 },
51 function ($txt, $value): string {
52 return $this->failed_constraint->getErrorMessage($value);
53 },
54 $data_factory,
56 );
57 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References $lng, and ILIAS\GlobalScreen\Provider\__construct().
◆ $failed_constraint
| Constraint ILIAS\Refinery\Logical\Sequential::$failed_constraint |
|
private |
There's a test to show this state will never be visible SequentialTest::testCorrectErrorMessagesAfterMultiAccept.
Definition at line 33 of file Sequential.php.
The documentation for this class was generated from the following file: