ILIAS  release_8 Revision v8.24
Transformation.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Refinery;
22
24use InvalidArgumentException;
25
35{
44 public function transform($from);
45
65 public function applyTo(Result $result): Result;
66
74 public function __invoke($from);
75}
A result encapsulates a value or an error and simplifies the handling of those.
Definition: Result.php:15
A transformation is a function from one datatype to another.
__invoke($from)
Transformations should be callable.
transform($from)
Perform the transformation.
applyTo(Result $result)
Perform the transformation and reify possible failures.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21