ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
Transformation.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Refinery\Custom
;
22
23
use
ILIAS\Data\Factory
;
24
use
ILIAS\Refinery\Transformation
as TransformationInterface;
25
use
ILIAS\Refinery\DeriveApplyToFromTransform
;
26
use
ILIAS\Refinery\DeriveInvokeFromTransform
;
27
31
class
Transformation
implements
TransformationInterface
32
{
33
use
DeriveApplyToFromTransform
;
34
use
DeriveInvokeFromTransform
;
35
37
private
$transformation
;
38
39
public
function
__construct
(callable
$transformation
)
40
{
41
$this->transformation =
$transformation
;
42
}
43
47
public
function
transform
($from)
48
{
49
return
call_user_func($this->transformation, $from);
50
}
51
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:21
ILIAS\Refinery\Custom\Transformation
Transform values according to custom configuration.
Definition:
Transformation.php:32
ILIAS\Refinery\Custom\Transformation\$transformation
$transformation
Definition:
Transformation.php:37
ILIAS\Refinery\Custom\Transformation\__construct
__construct(callable $transformation)
Definition:
Transformation.php:39
ILIAS\Refinery\Custom\Transformation\transform
transform($from)
@inheritDoc
Definition:
Transformation.php:47
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Refinery\Custom
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Constraint.php:21
ILIAS\Refinery\DeriveInvokeFromTransform
trait DeriveInvokeFromTransform
Definition:
DeriveInvokeFromTransform.php:27
ILIAS\Refinery\DeriveApplyToFromTransform
trait DeriveApplyToFromTransform
Definition:
DeriveApplyToFromTransform.php:29
src
Refinery
Custom
Transformation.php
Generated on Sun Nov 2 2025 22:01:59 for ILIAS by
1.9.4 (using
Doxyfile
)