Total Complexity | 4 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Hash |
||
12 | { |
||
13 | private $parameters; |
||
14 | |||
15 | 5 | public function __construct(array $parameters) |
|
16 | { |
||
17 | 5 | if (isset($parameters['value']) && \is_array($parameters['value'])) { |
|
18 | 2 | $parameters = $parameters['value']; |
|
19 | } |
||
20 | |||
21 | 5 | $this->parameters = $parameters; |
|
22 | 5 | } |
|
23 | |||
24 | 5 | public function getParameters(): array |
|
27 | } |
||
28 | } |
||
29 |