ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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.
InvalidArgumentException if the argument could not be transformed
| ||||||
![]() | ||||||
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 15 of file Transformation.php.
ILIAS\Refinery\Custom\Transformation::__construct | ( | callable | $transform, |
Factory | $factory | ||
) |
callable | $transform | |
Factory | null | $factory |
Definition at line 30 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::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 39 of file Transformation.php.
References ILIAS\Refinery\Custom\Transformation\transform().
Referenced by ILIAS\Refinery\Custom\Transformation\__construct(), and ILIAS\Refinery\Custom\Transformation\transform().
|
private |
Definition at line 24 of file Transformation.php.
Referenced by ILIAS\Refinery\Custom\Transformation\__construct().
|
protected |
Definition at line 23 of file Transformation.php.
Referenced by ILIAS\Refinery\Custom\Transformation\__construct().