ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
27 class Group
28 {
30  private \ILIAS\Language\Language $language;
31 
32  public function __construct(Factory $dataFactory, \ILIAS\Language\Language $language)
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 }
sequential(array $constraints)
Definition: Group.php:65
__construct(Factory $dataFactory, \ILIAS\Language\Language $language)
Definition: Group.php:32
Interface Observer Contains several chained tasks and infos about them.
A constraint encodes some resrtictions on values.
Definition: Constraint.php:31
logicalOr(array $other)
Definition: Group.php:42
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Builds data types.
Definition: Factory.php:35
parallel(array $constraints)
Definition: Group.php:56
ILIAS Language Language $language
Definition: Group.php:30
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
not(Constraint $constraint)
Definition: Group.php:47