ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ConstantTransformation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery
;
22
23
class
ConstantTransformation
implements
Transformation
24
{
25
use
DeriveInvokeFromTransform
;
26
use
DeriveApplyToFromTransform
;
27
28
protected
$value
;
29
30
public
function
__construct
(
$value
)
31
{
32
$this->value =
$value
;
33
}
34
38
public
function
transform
($from)
39
{
40
return
$this->value
;
41
}
42
}
ILIAS\Refinery\ConstantTransformation\$value
$value
Definition:
ConstantTransformation.php:28
ILIAS\Refinery
Definition:
ByTrying.php:21
ILIAS\Refinery\DeriveInvokeFromTransform
trait DeriveInvokeFromTransform
Definition:
DeriveInvokeFromTransform.php:24
ILIAS\Refinery\DeriveApplyToFromTransform
trait DeriveApplyToFromTransform
Definition:
DeriveApplyToFromTransform.php:29
ILIAS\Refinery\ConstantTransformation
Definition:
ConstantTransformation.php:23
ILIAS\Refinery\ConstantTransformation\__construct
__construct($value)
Definition:
ConstantTransformation.php:30
ILIAS\Refinery\ConstantTransformation\transform
transform($from)
Definition:
ConstantTransformation.php:38
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
components
ILIAS
Refinery
src
ConstantTransformation.php
Generated on Sun Aug 31 2025 23:03:31 for ILIAS by
1.8.13 (using
Doxyfile
)