ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Transformation.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
/* Copyright (c) 2017 Stefan Hecken <stefan.hecken@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Refinery
;
6
7
use
ILIAS\Data\Result
;
8
17
interface
Transformation
18
{
27
public
function
transform
($from);
28
51
public
function
applyTo
(
Result
$data
) :
Result
;
52
60
public
function
__invoke
($from);
61
}
ILIAS\Data\Result
Definition:
Error.php:4
$data
$data
Definition:
storeScorm.php:23
ILIAS\Refinery\Transformation\applyTo
applyTo(Result $data)
Perform the transformation and reify possible failures.
ILIAS\Refinery
Definition:
ByTrying.php:5
ILIAS\Data\Result
A result encapsulates a value or an error and simplifies the handling of those.
Definition:
Result.php:11
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:17
src
Refinery
Transformation.php
Generated on Sun Aug 31 2025 21:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)