ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Group.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Refinery\Custom;
22 
24 use ilLanguage;
27 
28 class Group
29 {
32 
33  public function __construct(Factory $dataFactory, ilLanguage $language)
34  {
35  $this->dataFactory = $dataFactory;
36  $this->language = $language;
37  }
38 
44  public function constraint(callable $callable, $error): ConstraintInterface
45  {
46  return new Constraint(
47  $callable,
48  $error,
49  $this->dataFactory,
50  $this->language
51  );
52  }
53 
54  public function transformation(callable $transform): TransformationInterface
55  {
56  return new Transformation($transform);
57  }
58 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Constraint.php:21
Transform values according to custom configuration.
__construct(Factory $dataFactory, ilLanguage $language)
Definition: Group.php:33
constraint(callable $callable, $error)
Definition: Group.php:44
transformation(callable $transform)
Definition: Group.php:54
ilErrorHandling $error
Definition: class.ilias.php:55