1 | <?php |
||
24 | class Map extends AbstractRule |
||
25 | { |
||
26 | protected $mapping = array(); |
||
27 | /** |
||
28 | * Operate the transformation |
||
29 | * If input is an array each cell is replaced independently |
||
30 | * and an array is returned |
||
31 | * |
||
32 | * @param mixed $input |
||
33 | * @param array $arguments |
||
34 | * |
||
35 | * @throws Inet\Transformation\Exception\TransformationException |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 8 | public function transform($input, $arguments) |
|
60 | |||
61 | /** |
||
62 | * @param string $value |
||
63 | */ |
||
64 | 5 | public function replace($value) |
|
73 | } |
||
74 |