ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Refinery\Integer\Group Class Reference
+ Collaboration diagram for ILIAS\Refinery\Integer\Group:

Public Member Functions

 __construct (private readonly Factory $dataFactory, private readonly Language $language, private readonly In $in)
 
 isGreaterThan (int $minimum)
 Creates a constraint that can be used to check if an integer value is greater than the defined lower limit. More...
 
 isLessThan (int $maximum)
 Creates a constraint that can be used to check if an integer value is less than the defined upper limit. More...
 
 isGreaterThanOrEqual (int $minimum)
 Creates a constraint that can be used to check if an integer value is greater than or equal the defined lower limit. More...
 
 isLessThanOrEqual (int $maximum)
 Creates a constraint that can be used to check if an integer value is less than or equal the defined upper limit. More...
 
 isBetween (int $lower_bound, int $upper_bound)
 Creates a constraint that can be used to check if an integer value is between the given lower and upper bounds. More...
 

Detailed Description

Definition at line 28 of file Group.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Integer\Group::__construct ( private readonly Factory  $dataFactory,
private readonly Language  $language,
private readonly In  $in 
)

Definition at line 30 of file Group.php.

34 {
35 }

Member Function Documentation

◆ isBetween()

ILIAS\Refinery\Integer\Group::isBetween ( int  $lower_bound,
int  $upper_bound 
)

Creates a constraint that can be used to check if an integer value is between the given lower and upper bounds.

The ranges are inclusive [$lower_bound, $upper_bound].

Definition at line 77 of file Group.php.

77 : Constraint
78 {
79 return $this->in->series([
80 $this->isGreaterThanOrEqual($lower_bound),
81 $this->isLessThanOrEqual($upper_bound),
82 ]);
83 }
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:68
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:59

References ILIAS\Refinery\Integer\Group\isGreaterThanOrEqual(), and ILIAS\Refinery\Integer\Group\isLessThanOrEqual().

+ Here is the call graph for this function:

◆ isGreaterThan()

ILIAS\Refinery\Integer\Group::isGreaterThan ( int  $minimum)

Creates a constraint that can be used to check if an integer value is greater than the defined lower limit.

Definition at line 41 of file Group.php.

41 : Constraint
42 {
43 return new GreaterThan($minimum, $this->dataFactory, $this->language);
44 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

◆ isGreaterThanOrEqual()

ILIAS\Refinery\Integer\Group::isGreaterThanOrEqual ( int  $minimum)

Creates a constraint that can be used to check if an integer value is greater than or equal the defined lower limit.

Definition at line 59 of file Group.php.

59 : Constraint
60 {
61 return new GreaterThanOrEqual($minimum, $this->dataFactory, $this->language);
62 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by ILIAS\Refinery\Integer\Group\isBetween().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isLessThan()

ILIAS\Refinery\Integer\Group::isLessThan ( int  $maximum)

Creates a constraint that can be used to check if an integer value is less than the defined upper limit.

Definition at line 50 of file Group.php.

50 : Constraint
51 {
52 return new LessThan($maximum, $this->dataFactory, $this->language);
53 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

◆ isLessThanOrEqual()

ILIAS\Refinery\Integer\Group::isLessThanOrEqual ( int  $maximum)

Creates a constraint that can be used to check if an integer value is less than or equal the defined upper limit.

Definition at line 68 of file Group.php.

68 : Constraint
69 {
70 return new LessThanOrEqual($maximum, $this->dataFactory, $this->language);
71 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by ILIAS\Refinery\Integer\Group\isBetween().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: