ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Refinery\Integer;
22 
25 use ilLanguage;
26 
27 class Group
28 {
31 
32  public function __construct(Factory $dataFactory, ilLanguage $language)
33  {
34  $this->dataFactory = $dataFactory;
35  $this->language = $language;
36  }
37 
42  public function isGreaterThan(int $minimum): Constraint
43  {
44  return new GreaterThan($minimum, $this->dataFactory, $this->language);
45  }
46 
51  public function isLessThan(int $maximum): Constraint
52  {
53  return new LessThan($maximum, $this->dataFactory, $this->language);
54  }
55 
60  public function isGreaterThanOrEqual(int $minimum): Constraint
61  {
62  return new GreaterThanOrEqual($minimum, $this->dataFactory, $this->language);
63  }
64 
69  public function isLessThanOrEqual(int $maximum): Constraint
70  {
71  return new LessThanOrEqual($maximum, $this->dataFactory, $this->language);
72  }
73 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GreaterThan.php:21
isLessThanOrEqual(int $maximum)
Creates a constraint that can be used to check if an integer value is less than or equal the defined ...
Definition: Group.php:69
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
__construct(Factory $dataFactory, ilLanguage $language)
Definition: Group.php:32
isGreaterThan(int $minimum)
Creates a constraint that can be used to check if an integer value is greater than the defined lower ...
Definition: Group.php:42
isLessThan(int $maximum)
Creates a constraint that can be used to check if an integer value is less than the defined upper lim...
Definition: Group.php:51
isGreaterThanOrEqual(int $minimum)
Creates a constraint that can be used to check if an integer value is greater than or equal the defin...
Definition: Group.php:60