| 1 | <?php declare(strict_types = 1); |
||
| 5 | class SignatureDataFormatter |
||
| 6 | { |
||
| 7 | |||
| 8 | /** @var mixed[] */ |
||
| 9 | private $keysPriority; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param mixed[] $keysPriority |
||
| 13 | */ |
||
| 14 | 43 | public function __construct(array $keysPriority) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @param mixed[] $data |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 12 | public function formatDataForSignature(array $data): string |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param mixed[] $data |
||
| 30 | * @param mixed[] $keys |
||
| 31 | * @return mixed[] |
||
| 32 | */ |
||
| 33 | 12 | private function generateMessage(array $data, array $keys): array |
|
| 61 | |||
| 62 | } |
||
| 63 |