ILIAS  release_7 Revision v7.30-3-g800a261c036
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
16class 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}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
sequential(array $constraints)
Definition: Group.php:65
__construct(Factory $dataFactory, \ilLanguage $language)
Definition: Group.php:28
parallel(array $constraints)
Definition: Group.php:56
logicalOr(array $other)
Definition: Group.php:38
not(Constraint $constraint)
Definition: Group.php:47
language handling
A constraint encodes some resrtictions on values.
Definition: Constraint.php:15
language()
Definition: language.php:2