ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
Transformation.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Refinery\Custom;
22 
26 
31 {
34 
36  private $transformation;
37 
38  public function __construct(callable $transformation)
39  {
40  $this->transformation = $transformation;
41  }
42 
46  public function transform($from)
47  {
48  return call_user_func($this->transformation, $from);
49  }
50 }
Transform values according to custom configuration.