|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Transform values according to custom configuration. More...
Inheritance diagram for ILIAS\Refinery\Custom\Transformation:
Collaboration diagram for ILIAS\Refinery\Custom\Transformation: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.
InvalidArgumentException if the argument could not be transformed
| ||||||
| __invoke ($from) | ||||||
Transformations should be callable.This MUST do the same as transform.
InvalidArgumentException if the argument could not be transformed
| ||||||
Public Member Functions inherited from ILIAS\Refinery\Transformation | ||||||
| transform ($from) | ||||||
| Perform the transformation. More... | ||||||
| applyTo (Result $data) | ||||||
| Perform the transformation and reify possible failures. More... | ||||||
| __invoke ($from) | ||||||
| Transformations should be callable. 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().
Here is the call graph for this function:| ILIAS\Refinery\Custom\Transformation::__invoke | ( | $from | ) |
Transformations should be callable.This MUST do the same as transform.
InvalidArgumentException if the argument could not be transformed
| mixed | $from |
Implements ILIAS\Refinery\Transformation.
Definition at line 45 of file Transformation.php.
References ILIAS\Refinery\Custom\Transformation\transform().
Here is the call graph for this function:| ILIAS\Refinery\Custom\Transformation::transform | ( | $from | ) |
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
InvalidArgumentException if the argument could not be transformed
| mixed | $from |
Implements ILIAS\Refinery\Transformation.
Definition at line 37 of file Transformation.php.
References ILIAS\Refinery\Custom\Transformation\transform().
Referenced by ILIAS\Refinery\Custom\Transformation\__construct(), ILIAS\Refinery\Custom\Transformation\__invoke(), and ILIAS\Refinery\Custom\Transformation\transform().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().