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\Container;
22 
25 
26 class Group
27 {
29 
30  public function __construct(Factory $dataFactory)
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 }
__construct(Factory $dataFactory)
Definition: Group.php:30
Adds to any array keys for each value.
Definition: AddLabels.php:32
addLabels(array $labels)
Adds to any array keys for each value.
Definition: Group.php:40
Adds to any array keys for each value.
Definition: MapValues.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: AddLabels.php:21
mapValues(Transformation $trafo)
Returns a transformation which applies the given transformation to the element of the array passed to...
Definition: Group.php:49
A transformation is a function from one datatype to another.