ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Refinery\Container\Group Class Reference
+ Collaboration diagram for ILIAS\Refinery\Container\Group:

Public Member Functions

 __construct (Factory $dataFactory)
 
 addLabels (array $labels)
 Adds to any array keys for each value. More...
 
 mapValues (Transformation $trafo)
 Returns a transformation which applies the given transformation to the element of the array passed to the transformation. More...
 

Private Attributes

Factory $dataFactory
 

Detailed Description

Definition at line 26 of file Group.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Container\Group::__construct ( Factory  $dataFactory)

Definition at line 30 of file Group.php.

31 {
32 $this->dataFactory = $dataFactory;
33 }

References ILIAS\Refinery\Container\Group\$dataFactory.

Member Function Documentation

◆ addLabels()

ILIAS\Refinery\Container\Group::addLabels ( array  $labels)

Adds to any array keys for each value.

Parameters
string[] | int[]$labels
Returns
Transformation

Definition at line 40 of file Group.php.

40 : Transformation
41 {
42 return new AddLabels($labels, $this->dataFactory);
43 }

◆ mapValues()

ILIAS\Refinery\Container\Group::mapValues ( Transformation  $trafo)

Returns a transformation which applies the given transformation to the element of the array passed to the transformation.

Definition at line 49 of file Group.php.

49 : Transformation
50 {
51 return new MapValues($trafo);
52 }

Field Documentation

◆ $dataFactory

Factory ILIAS\Refinery\Container\Group::$dataFactory
private

Definition at line 28 of file Group.php.

Referenced by ILIAS\Refinery\Container\Group\__construct().


The documentation for this class was generated from the following file: