ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
7 namespace ILIAS\Refinery\Custom;
8 
10 
11 class Group
12 {
16  private $dataFactory;
17 
21  private $language;
22 
24  {
25  $this->dataFactory = $dataFactory;
26  $this->language = $language;
27  }
28 
34  public function constraint(callable $callable, $error) : Constraint
35  {
36  return new Constraint(
37  $callable,
38  $error,
39  $this->dataFactory,
40  $this->language
41  );
42  }
43 
48  public function transformation(callable $transform) : Transformation
49  {
50  return new Transformation($transform, $this->dataFactory);
51  }
52 }
Transform values according to custom configuration.
constraint(callable $callable, $error)
Definition: Group.php:34
Builds data types.
Definition: Factory.php:19
transformation(callable $transform)
Definition: Group.php:48
language handling
__construct(Factory $dataFactory, \ilLanguage $language)
Definition: Group.php:23
language()
Definition: language.php:2