ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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:7
ILIAS\Refinery
Definition:
ByTrying.php:21
ILIAS\Data\Result
A result encapsulates a value or an error and simplifies the handling of those.
Definition:
Result.php:14
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
InvalidArgumentException
ILIAS\Refinery\Transformation\applyTo
applyTo(Result $result)
Perform the transformation and reify possible failures.
src
Refinery
Transformation.php
Generated on Wed Sep 10 2025 14:12:07 for ILIAS by
1.8.13 (using
Doxyfile
)