ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ConstantTransformation.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ByTrying.php:21
ILIAS\Refinery\DeriveApplyToFromTransform
trait DeriveApplyToFromTransform
Definition:
DeriveApplyToFromTransform.php:29
ILIAS\Refinery\DeriveInvokeFromTransform
trait DeriveInvokeFromTransform
Definition:
DeriveInvokeFromTransform.php:27
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
src
Refinery
ConstantTransformation.php
Generated on Sun Aug 31 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)