ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Group.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26class Group
27{
29
31 {
32 $this->dataFactory = $dataFactory;
33 }
34
40 public function addLabels(array $labels): Transformation
41 {
42 return new AddLabels($labels, $this->dataFactory);
43 }
44
49 public function mapValues(Transformation $trafo): Transformation
50 {
51 return new MapValues($trafo);
52 }
53}
Builds data types.
Definition: Factory.php:36
Adds to any array keys for each value.
Definition: AddLabels.php:33
mapValues(Transformation $trafo)
Returns a transformation which applies the given transformation to the element of the array passed to...
Definition: Group.php:49
addLabels(array $labels)
Adds to any array keys for each value.
Definition: Group.php:40
__construct(Factory $dataFactory)
Definition: Group.php:30
Adds to any array keys for each value.
Definition: MapValues.php:32
A transformation is a function from one datatype to another.