ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
GreaterThanOrEqual.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Refinery\Integer;
22 
23 use ILIAS\Data;
25 use ilLanguage;
26 
28 {
29  public function __construct(int $min, Data\Factory $data_factory, ilLanguage $lng)
30  {
32  static function ($value) use ($min): bool {
33  return $value >= $min;
34  },
35  static function ($txt, $value) use ($min): string {
36  return (string) $txt("not_greater_than_or_equal", $min);
37  },
38  $data_factory,
39  $lng
40  );
41  }
42 }
__construct(int $min, Data\Factory $data_factory, ilLanguage $lng)
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
__construct(VocabulariesInterface $vocabularies)
$lng
$txt
Definition: error.php:14
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...