GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — timezone-service ( 50c73a )
by Eric
02:23
created

TimeZoneResponse::getDstOffset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Service\TimeZone;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class TimeZoneResponse
18
{
19
    /**
20
     * @var string|null
21
     */
22
    private $status;
23
24
    /**
25
     * @var int|null
26
     */
27
    private $dstOffset;
28
29
    /**
30
     * @var int|null
31
     */
32
    private $rawOffset;
33
34
    /**
35
     * @var string|null
36
     */
37
    private $timeZoneId;
38
39
    /**
40
     * @var string|null
41
     */
42
    private $timeZoneName;
43
44
    /**
45
     * @return bool
46
     */
47
    public function hasStatus()
48
    {
49
        return $this->status !== null;
50
    }
51
52
    /**
53
     * @return string|null
54
     */
55
    public function getStatus()
56
    {
57
        return $this->status;
58
    }
59
60
    /**
61
     * @param string|null $status
62
     */
63
    public function setStatus($status)
64
    {
65
        $this->status = $status;
66
    }
67
68
    /**
69
     * @return bool
70
     */
71
    public function hasDstOffset()
72
    {
73
        return $this->dstOffset !== null;
74
    }
75
76
    /**
77
     * @return int|null
78
     */
79
    public function getDstOffset()
80
    {
81
        return $this->dstOffset;
82
    }
83
84
    /**
85
     * @param int|null $dstOffset
86
     */
87
    public function setDstOffset($dstOffset)
88
    {
89
        $this->dstOffset = $dstOffset;
90
    }
91
92
    /**
93
     * @return bool
94
     */
95
    public function hasRawOffset()
96
    {
97
        return $this->rawOffset !== null;
98
    }
99
100
    /**
101
     * @return int|null
102
     */
103
    public function getRawOffset()
104
    {
105
        return $this->rawOffset;
106
    }
107
108
    /**
109
     * @param int|null $rawOffset
110
     */
111
    public function setRawOffset($rawOffset)
112
    {
113
        $this->rawOffset = $rawOffset;
114
    }
115
116
    /**
117
     * @return bool
118
     */
119
    public function hasTimeZoneId()
120
    {
121
        return $this->timeZoneId !== null;
122
    }
123
124
    /**
125
     * @return string|null
126
     */
127
    public function getTimeZoneId()
128
    {
129
        return $this->timeZoneId;
130
    }
131
132
    /**
133
     * @param string|null $timeZoneId
134
     */
135
    public function setTimeZoneId($timeZoneId)
136
    {
137
        $this->timeZoneId = $timeZoneId;
138
    }
139
140
    /**
141
     * @return bool
142
     */
143
    public function hasTimeZoneName()
144
    {
145
        return $this->timeZoneName !== null;
146
    }
147
148
    /**
149
     * @return string|null
150
     */
151
    public function getTimeZoneName()
152
    {
153
        return $this->timeZoneName;
154
    }
155
156
    /**
157
     * @param string|null $timeZoneName
158
     */
159
    public function setTimeZoneName($timeZoneName)
160
    {
161
        $this->timeZoneName = $timeZoneName;
162
    }
163
}
164