ILIAS  release_8 Revision v8.23
Group.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
26 use ilLanguage;
27 
28 class Group
29 {
32 
33  public function __construct(Factory $dataFactory, ilLanguage $language)
34  {
35  $this->dataFactory = $dataFactory;
36  $this->language = $language;
37  }
38 
43  public function logicalOr(array $other): ConstraintInterface
44  {
45  return new LogicalOr($other, $this->dataFactory, $this->language);
46  }
47 
48  public function not(Constraint $constraint): ConstraintInterface
49  {
50  return new Not($constraint, $this->dataFactory, $this->language);
51  }
52 
57  public function parallel(array $constraints): ConstraintInterface
58  {
59  return new Parallel($constraints, $this->dataFactory, $this->language);
60  }
61 
66  public function sequential(array $constraints): ConstraintInterface
67  {
68  return new Sequential($constraints, $this->dataFactory, $this->language);
69  }
70 }
sequential(array $constraints)
Definition: Group.php:66
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
__construct(Factory $dataFactory, ilLanguage $language)
Definition: Group.php:33
logicalOr(array $other)
Definition: Group.php:43
parallel(array $constraints)
Definition: Group.php:57
not(Constraint $constraint)
Definition: Group.php:48
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Group.php:21