Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class GeoLite2Options extends AbstractOptions |
||
9 | { |
||
10 | private $dbLocation = ''; |
||
11 | private $tempDir = ''; |
||
12 | private $downloadFrom = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'; |
||
13 | |||
14 | 5 | public function getDbLocation(): string |
|
15 | { |
||
16 | 5 | return $this->dbLocation; |
|
17 | } |
||
18 | |||
19 | 7 | protected function setDbLocation(string $dbLocation): self |
|
20 | { |
||
21 | 7 | $this->dbLocation = $dbLocation; |
|
22 | 7 | return $this; |
|
23 | } |
||
24 | |||
25 | 5 | public function getTempDir(): string |
|
26 | { |
||
27 | 5 | return $this->tempDir; |
|
28 | } |
||
29 | |||
30 | 7 | protected function setTempDir(string $tempDir): self |
|
31 | { |
||
32 | 7 | $this->tempDir = $tempDir; |
|
33 | 7 | return $this; |
|
34 | } |
||
35 | |||
36 | 5 | public function getDownloadFrom(): string |
|
39 | } |
||
40 | |||
41 | 7 | protected function setDownloadFrom(string $downloadFrom): self |
|
45 | } |
||
46 | } |
||
47 |