Total Complexity | 1 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class AbstractTransformation |
||
10 | { |
||
11 | /** |
||
12 | * The value to transform. |
||
13 | * |
||
14 | * @var mixed |
||
15 | */ |
||
16 | protected $value; |
||
17 | |||
18 | /** |
||
19 | * The item containing the value to transform. |
||
20 | * |
||
21 | * @var array|object |
||
22 | */ |
||
23 | protected $item; |
||
24 | |||
25 | /** |
||
26 | * Set the dependencies. |
||
27 | * |
||
28 | * @param mixed $value |
||
29 | * @param array|object $item |
||
30 | */ |
||
31 | 51 | public function __construct($value, $item) |
|
35 | 51 | } |
|
36 | |||
37 | /** |
||
38 | * Apply the transformation |
||
39 | * |
||
40 | * @param array $parameters |
||
41 | * @return void |
||
42 | */ |
||
43 | abstract public function apply(array $parameters); |
||
44 | } |
||
45 |