ILIAS  release_8 Revision v8.24
Group.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
25use ILIAS\Refinery\Constraint as ConstraintInterface;
26use ilLanguage;
27
28class Group
29{
32
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}
Builds data types.
Definition: Factory.php:21
__construct(Factory $dataFactory, ilLanguage $language)
Definition: Group.php:33
sequential(array $constraints)
Definition: Group.php:66
parallel(array $constraints)
Definition: Group.php:57
logicalOr(array $other)
Definition: Group.php:43
not(Constraint $constraint)
Definition: Group.php:48
language handling
A constraint encodes some resrtictions on values.
Definition: Constraint.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Group.php:21