ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Group.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\Refinery\Constraint as ConstraintInterface;
26
27class Group
28{
30 private \ILIAS\Language\Language $language;
31
33 {
34 $this->dataFactory = $dataFactory;
35 $this->language = $language;
36 }
37
42 public function logicalOr(array $other): ConstraintInterface
43 {
44 return new LogicalOr($other, $this->dataFactory, $this->language);
45 }
46
47 public function not(Constraint $constraint): ConstraintInterface
48 {
49 return new Not($constraint, $this->dataFactory, $this->language);
50 }
51
56 public function parallel(array $constraints): ConstraintInterface
57 {
58 return new Parallel($constraints, $this->dataFactory, $this->language);
59 }
60
65 public function sequential(array $constraints): ConstraintInterface
66 {
67 return new Sequential($constraints, $this->dataFactory, $this->language);
68 }
69}
Builds data types.
Definition: Factory.php:36
ILIAS Language Language $language
Definition: Group.php:30
__construct(Factory $dataFactory, \ILIAS\Language\Language $language)
Definition: Group.php:32
sequential(array $constraints)
Definition: Group.php:65
parallel(array $constraints)
Definition: Group.php:56
logicalOr(array $other)
Definition: Group.php:42
not(Constraint $constraint)
Definition: Group.php:47
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.