ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Transformation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Refinery\Custom;
22 
27 
32 {
35 
37  private $transformation;
38 
39  public function __construct(callable $transformation)
40  {
41  $this->transformation = $transformation;
42  }
43 
47  public function transform($from)
48  {
49  return call_user_func($this->transformation, $from);
50  }
51 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Constraint.php:21
Transform values according to custom configuration.
__construct(callable $transformation)