ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
12 
16 class Group
17 {
21  private $dataFactory;
22 
26  private $language;
27 
29  {
30  $this->dataFactory = $dataFactory;
31  $this->language = $language;
32  }
33 
38  public function logicalOr(array $other) : LogicalOr
39  {
40  return new LogicalOr($other, $this->dataFactory, $this->language);
41  }
42 
47  public function not(Constraint $constraint) : Not
48  {
49  return new Not($constraint, $this->dataFactory, $this->language);
50  }
51 
56  public function parallel(array $constraints) : Parallel
57  {
58  return new Parallel($constraints, $this->dataFactory, $this->language);
59  }
60 
65  public function sequential(array $constraints) : Sequential
66  {
67  return new Sequential($constraints, $this->dataFactory, $this->language);
68  }
69 }
sequential(array $constraints)
Definition: Group.php:65
A constraint encodes some resrtictions on values.
Definition: Constraint.php:14
logicalOr(array $other)
Definition: Group.php:38
Builds data types.
Definition: Factory.php:19
__construct(Factory $dataFactory, \ilLanguage $language)
Definition: Group.php:28
parallel(array $constraints)
Definition: Group.php:56
language handling
language()
Definition: language.php:2
not(Constraint $constraint)
Definition: Group.php:47