Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class PaginationDataHandler implements PaginationDataHandlerInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function retrieveData(array $requestData): array |
||
21 | { |
||
22 | $data = []; |
||
23 | |||
24 | $this->resolvePage($requestData, $data); |
||
25 | $this->resolveLimit($requestData, $data); |
||
26 | |||
27 | return $data; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param array $requestData |
||
32 | * @param array $data |
||
33 | */ |
||
34 | private function resolvePage(array $requestData, array &$data): void |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param array $requestData |
||
47 | * @param array $data |
||
48 | */ |
||
49 | private function resolveLimit(array $requestData, array &$data): void |
||
60 |