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 | 43 | public function __construct(array $keysPriority) |
|
25 | |||
26 | /** |
||
27 | * @param mixed[] $data |
||
28 | * @return string |
||
29 | */ |
||
30 | 12 | public function formatDataForSignature(array $data): string |
|
34 | |||
35 | /** |
||
36 | * @param mixed[] $data |
||
37 | * @param mixed[] $keys |
||
38 | * @return mixed[] |
||
39 | */ |
||
40 | 12 | private function generateMessage(array $data, array $keys): array |
|
70 | |||
71 | } |
||
72 |