ILIAS  release_8 Revision v8.24
Group.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
25use ilLanguage;
26
27class Group
28{
31
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}
Builds data types.
Definition: Factory.php:21
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
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
__construct(Factory $dataFactory, ilLanguage $language)
Definition: Group.php:32
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
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
language handling
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GreaterThan.php:21