ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
Group.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class Group
27{
29 private \ILIAS\Language\Language $language;
30
32 {
33 $this->dataFactory = $dataFactory;
34 $this->language = $language;
35 }
36
40 public function logicalOr(array $other): Constraint
41 {
42 return new LogicalOr($other, $this->dataFactory, $this->language);
43 }
44
45 public function not(Constraint $constraint): Constraint
46 {
47 return new Not($constraint, $this->dataFactory, $this->language);
48 }
49
53 public function parallel(array $constraints): Constraint
54 {
55 return new Parallel($constraints, $this->dataFactory, $this->language);
56 }
57
61 public function sequential(array $constraints): Constraint
62 {
63 return new Sequential($constraints, $this->dataFactory, $this->language);
64 }
65}
Builds data types.
Definition: Factory.php:36
ILIAS Language Language $language
Definition: Group.php:29
__construct(Factory $dataFactory, \ILIAS\Language\Language $language)
Definition: Group.php:31
sequential(array $constraints)
Definition: Group.php:61
parallel(array $constraints)
Definition: Group.php:53
logicalOr(array $other)
Definition: Group.php:40
not(Constraint $constraint)
Definition: Group.php:45
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.