ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Transformation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery
;
22
23
use
ILIAS\Data\Result
;
24
use
InvalidArgumentException
;
25
34
interface
Transformation
35
{
44
public
function
transform
($from);
45
65
public
function
applyTo
(
Result
$result):
Result
;
66
74
public
function
__invoke
($from);
75
}
ILIAS\Data\Result
Definition:
Error.php:21
ILIAS\Refinery
Definition:
ByTrying.php:21
ILIAS\Refinery\Transformation\transform
transform($from)
Perform the transformation.
ILIAS\Refinery\Transformation\__invoke
__invoke($from)
Transformations should be callable.
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
WrapperInterface
InvalidArgumentException
ILIAS\Refinery\Transformation\applyTo
applyTo(Result $result)
Perform the transformation and reify possible failures.
components
ILIAS
Refinery
src
Transformation.php
Generated on Sun Aug 31 2025 23:03:31 for ILIAS by
1.8.13 (using
Doxyfile
)