ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ConstantTransformation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Refinery;
22
24{
27
28 protected $value;
29
30 public function __construct($value)
31 {
32 $this->value = $value;
33 }
34
38 public function transform($from)
39 {
40 return $this->value;
41 }
42}
A transformation is a function from one datatype to another.