ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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\Transformation;
6 
15 interface Transformation
16 {
25  public function transform($from);
26 
34  public function __invoke($from);
35 }
A transformation is a function from one datatype to another.
$from
__invoke($from)
Transformations should be callable.
transform($from)
Perform the transformation.