Completed
Pull Request — master (#454)
by Alejandro
14:47
created

GeoLite2Options::getTempDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\IpGeolocation\GeoLite2;
5
6
use Zend\Stdlib\AbstractOptions;
7
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
    public function getDbLocation(): string
15
    {
16
        return $this->dbLocation;
17
    }
18
19
    protected function setDbLocation(string $dbLocation): self
20
    {
21
        $this->dbLocation = $dbLocation;
22
        return $this;
23
    }
24
25
    public function getTempDir(): string
26
    {
27
        return $this->tempDir;
28
    }
29
30
    protected function setTempDir(string $tempDir): self
31
    {
32
        $this->tempDir = $tempDir;
33
        return $this;
34
    }
35
36
    public function getDownloadFrom(): string
37
    {
38
        return $this->downloadFrom;
39
    }
40
41
    protected function setDownloadFrom(string $downloadFrom): self
42
    {
43
        $this->downloadFrom = $downloadFrom;
44
        return $this;
45
    }
46
}
47