ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation Class Reference

Transform values according to custom configuration. More...

+ Inheritance diagram for ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation:
+ Collaboration diagram for ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation:

Public Member Functions

 __construct (callable $transformation)
 
 transform ($from)
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 applyTo (Result $result)
 Perform the transformation and reify possible failures. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Private Attributes

 $transformation
 

Detailed Description

Transform values according to custom configuration.

Definition at line 30 of file Transformation.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation::__construct ( callable  $transformation)

Member Function Documentation

◆ transform()

ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation::transform (   $from)

Implements ILIAS\Refinery\Transformation.

Definition at line 46 of file Transformation.php.

47  {
48  return call_user_func($this->transformation, $from);
49  }

Field Documentation

◆ $transformation

ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Transformation::$transformation
private

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