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