Passed
Push — master ( e6791d...3608dc )
by Jonathan
01:59
created

Defaults::setTtl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Tisd\Sdk\Defaults;
4
5
class Defaults extends AbstractDefaults
6
{
7 55
    public function __construct()
8
    {
9 55
        $this->setContext(null);
10 55
        $this->setHostname(self::HOSTNAME_PRODUCTION);
11 55
        $this->setLocale(self::LOCALE);
12 55
        $this->setTimeout(self::TIMEOUT);
13 55
        $this->setTtl(self::TTL);
14 55
        $this->setVersion(self::VERSION);
15 55
    }
16
17 47
    public function getContext()
18
    {
19 47
        return $this->context;
20
    }
21
22 55
    public function setContext($context)
23
    {
24 55
        $this->context = $context;
25
26 55
        return $this;
27
    }
28
29 47
    public function getHostname()
30
    {
31 47
        return $this->hostname;
32
    }
33
34 55
    public function setHostname($hostname)
35
    {
36 55
        $this->hostname = $hostname;
37
38 55
        return $this;
39
    }
40
41 47
    public function getLocale()
42
    {
43 47
        return $this->locale;
44
    }
45
46 55
    public function setLocale($locale)
47
    {
48 55
        $this->locale = $locale;
49
50 55
        return $this;
51
    }
52
53 47
    public function getTimeout()
54
    {
55 47
        return $this->timeout;
56
    }
57
58 55
    public function setTimeout($timeout)
59
    {
60 55
        $this->timeout = $timeout;
61
62 55
        return $this;
63
    }
64
65
    public function getTtl()
66
    {
67
        return $this->ttl;
68
    }
69
70 55
    public function setTtl($ttl)
71
    {
72 55
        $this->ttl = $ttl;
73
74 55
        return $this;
75
    }
76
77 47
    public function getVersion()
78
    {
79 47
        return $this->version;
80
    }
81
82 55
    public function setVersion($version)
83
    {
84 55
        $this->version = $version;
85
86 55
        return $this;
87
    }
88
}
89