ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

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
+ 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.

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

41  : Constraint
42  {
43  return new GreaterThan($minimum, $this->dataFactory, $this->language);
44  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ 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.

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

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

59  : Constraint
60  {
61  return new GreaterThanOrEqual($minimum, $this->dataFactory, $this->language);
62  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ 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.

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

50  : Constraint
51  {
52  return new LessThan($maximum, $this->dataFactory, $this->language);
53  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ 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.

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

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

68  : Constraint
69  {
70  return new LessThanOrEqual($maximum, $this->dataFactory, $this->language);
71  }
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
+ 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: