Total Complexity | 10 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 86.36% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
12 | class SignatureDataFormatter |
||
13 | { |
||
14 | |||
15 | /** @var mixed[] */ |
||
16 | private $keysPriority; |
||
17 | |||
18 | /** |
||
19 | * @param mixed[] $keysPriority |
||
20 | */ |
||
21 | 46 | public function __construct(array $keysPriority) |
|
22 | { |
||
23 | 46 | $this->keysPriority = $keysPriority; |
|
24 | 46 | } |
|
25 | |||
26 | /** |
||
27 | * @param mixed[] $data |
||
28 | * @return string |
||
29 | */ |
||
30 | 12 | public function formatDataForSignature(array $data): string |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param mixed[] $data |
||
37 | * @param mixed[] $keys |
||
38 | * @return mixed[] |
||
39 | */ |
||
40 | 12 | private function generateMessage(array $data, array $keys): array |
|
72 |