Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ResponseDownload extends Response |
||
8 | { |
||
9 | private array $downloadedMaps = []; |
||
10 | private array $failedMaps = []; |
||
11 | |||
12 | /** |
||
13 | * Get downloaded maps hash |
||
14 | * @return array Array of hash |
||
15 | */ |
||
16 | public function getDownloadedMapsHash(): array |
||
17 | { |
||
18 | return $this->downloadedMaps; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Get failed maps hash |
||
23 | * @return array Array of hash |
||
24 | */ |
||
25 | public function getFailedMapsHash(): array |
||
26 | { |
||
27 | return $this->failedMaps; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Push a new hash in the downloadedMaps array |
||
32 | * @param string $hash Map hash |
||
33 | * @return ResponseDownload |
||
34 | */ |
||
35 | public function pushDownloadMapHash(string $hash): ResponseDownload |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Push a new hash in the failedMaps array |
||
43 | * @param string $hash Map hash |
||
44 | * @return ResponseDownload |
||
45 | */ |
||
46 | public function pushFailMapHash(string $hash): ResponseDownload |
||
50 | } |
||
51 | } |