ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Transform values according to custom configuration. More...
Public Member Functions | |||
__construct (callable $transform, Factory $factory) | |||
transform ($from) | |||
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
| |||
__invoke ($from) | |||
Transformations should be callable.This MUST do the same as transform.
| |||
![]() | |||
applyTo (Result $data) | |||
Perform the transformation and reify possible failures. More... | |||
Protected Attributes | |
$transform | |
Private Attributes | |
$factory | |
Transform values according to custom configuration.
Definition at line 14 of file Transformation.php.
ILIAS\Refinery\Custom\Transformation::__construct | ( | callable | $transform, |
Factory | $factory | ||
) |
callable | $transform | |
Factory | null | $factory |
Definition at line 28 of file Transformation.php.
References ILIAS\Refinery\Custom\Transformation\$factory, ILIAS\Refinery\Custom\Transformation\$transform, and ILIAS\Refinery\Custom\Transformation\transform().
ILIAS\Refinery\Custom\Transformation::__invoke | ( | $from | ) |
Transformations should be callable.This MUST do the same as transform.
Implements ILIAS\Refinery\Transformation.
Definition at line 45 of file Transformation.php.
References ILIAS\Refinery\Custom\Transformation\transform().
ILIAS\Refinery\Custom\Transformation::transform | ( | $from | ) |
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
Implements ILIAS\Refinery\Transformation.
Definition at line 37 of file Transformation.php.
Referenced by ILIAS\Refinery\Custom\Transformation\__construct(), and ILIAS\Refinery\Custom\Transformation\__invoke().
|
private |
Definition at line 22 of file Transformation.php.
Referenced by ILIAS\Refinery\Custom\Transformation\__construct().
|
protected |
Definition at line 21 of file Transformation.php.
Referenced by ILIAS\Refinery\Custom\Transformation\__construct().