ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
8
10
11class 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}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
constraint(callable $callable, $error)
Definition: Group.php:34
transformation(callable $transform)
Definition: Group.php:48
__construct(Factory $dataFactory, \ilLanguage $language)
Definition: Group.php:23
Transform values according to custom configuration.
language handling
language()
Definition: language.php:2