Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ParamTranfromer |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $prefix; |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $replace; |
||
17 | |||
18 | 6 | public function __construct(string $prefix, array $replace) |
|
19 | { |
||
20 | 6 | $this->prefix = $prefix; |
|
21 | 6 | $this->replace = $replace; |
|
22 | 6 | } |
|
23 | |||
24 | 6 | public function transform(string $name, array $params): array |
|
30 | } |
||
31 | |||
32 | 3 | private function transformParam(array $params): array |
|
42 |