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 — master ( 136ebc...1faea8 )
by Eric
03:01
created

DirectionsTransitDetails::setLine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
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\Directions\Response\Transit;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class DirectionsTransitDetails
18
{
19
    /**
20
     * @var DirectionsTransitStop|null
21
     */
22
    private $departureStop;
23
24
    /**
25
     * @var DirectionsTransitStop|null
26
     */
27
    private $arrivalStop;
28
29
    /**
30
     * @var \DateTime|null
31
     */
32
    private $departureTime;
33
34
    /**
35
     * @var \DateTime|null
36
     */
37
    private $arrivalTime;
38
39
    /**
40
     * @var string|null
41
     */
42
    private $headSign;
43
44
    /**
45
     * @var int|null
46
     */
47
    private $headWay;
48
49
    /**
50
     * @var DirectionsTransitLine|null
51
     */
52
    private $line;
53
54
    /**
55
     * @var int|null
56
     */
57
    private $numStops;
58
59
    /**
60
     * @return bool
61
     */
62
    public function hasDepartureStop()
63
    {
64
        return $this->departureStop !== null;
65
    }
66
67
    /**
68
     * @return DirectionsTransitStop|null
69
     */
70
    public function getDepartureStop()
71
    {
72
        return $this->departureStop;
73
    }
74
75
    /**
76
     * @param DirectionsTransitStop|null $departureStop
77
     */
78
    public function setDepartureStop(DirectionsTransitStop $departureStop = null)
79
    {
80
        $this->departureStop = $departureStop;
81
    }
82
83
    /**
84
     * @return bool
85
     */
86
    public function hasArrivalStop()
87
    {
88
        return $this->arrivalStop !== null;
89
    }
90
91
    /**
92
     * @return DirectionsTransitStop|null
93
     */
94
    public function getArrivalStop()
95
    {
96
        return $this->arrivalStop;
97
    }
98
99
    /**
100
     * @param DirectionsTransitStop|null $arrivalStop
101
     */
102
    public function setArrivalStop(DirectionsTransitStop $arrivalStop = null)
103
    {
104
        $this->arrivalStop = $arrivalStop;
105
    }
106
107
    /**
108
     * @return bool
109
     */
110
    public function hasDepartureTime()
111
    {
112
        return $this->departureTime !== null;
113
    }
114
115
    /**
116
     * @return \DateTime|null
117
     */
118
    public function getDepartureTime()
119
    {
120
        return $this->departureTime;
121
    }
122
123
    /**
124
     * @param \DateTime|null $departureTime
125
     */
126
    public function setDepartureTime(\DateTime $departureTime = null)
127
    {
128
        $this->departureTime = $departureTime;
129
    }
130
131
    /**
132
     * @return bool
133
     */
134
    public function hasArrivalTime()
135
    {
136
        return $this->arrivalTime !== null;
137
    }
138
139
    /**
140
     * @return \DateTime|null
141
     */
142
    public function getArrivalTime()
143
    {
144
        return $this->arrivalTime;
145
    }
146
147
    /**
148
     * @param \DateTime|null $arrivalTime
149
     */
150
    public function setArrivalTime(\DateTime $arrivalTime = null)
151
    {
152
        $this->arrivalTime = $arrivalTime;
153
    }
154
155
    /**
156
     * @return bool
157
     */
158
    public function hasHeadSign()
159
    {
160
        return $this->headSign !== null;
161
    }
162
163
    /**
164
     * @return string|null
165
     */
166
    public function getHeadSign()
167
    {
168
        return $this->headSign;
169
    }
170
171
    /**
172
     * @param string|null $headSign
173
     */
174
    public function setHeadSign($headSign)
175
    {
176
        $this->headSign = $headSign;
177
    }
178
179
    /**
180
     * @return bool
181
     */
182
    public function hasHeadWay()
183
    {
184
        return $this->headWay !== null;
185
    }
186
187
    /**
188
     * @return int|null
189
     */
190
    public function getHeadWay()
191
    {
192
        return $this->headWay;
193
    }
194
195
    /**
196
     * @param int|null $headWay
197
     */
198
    public function setHeadWay($headWay)
199
    {
200
        $this->headWay = $headWay;
201
    }
202
203
    /**
204
     * @return bool
205
     */
206
    public function hasLine()
207
    {
208
        return $this->line !== null;
209
    }
210
211
    /**
212
     * @return DirectionsTransitLine|null
213
     */
214
    public function getLine()
215
    {
216
        return $this->line;
217
    }
218
219
    /**
220
     * @param DirectionsTransitLine|null $line
221
     */
222
    public function setLine(DirectionsTransitLine $line = null)
223
    {
224
        $this->line = $line;
225
    }
226
227
    /**
228
     * @return bool
229
     */
230
    public function hasNumStops()
231
    {
232
        return $this->numStops !== null;
233
    }
234
235
    /**
236
     * @return int|null
237
     */
238
    public function getNumStops()
239
    {
240
        return $this->numStops;
241
    }
242
243
    /**
244
     * @param int|null $numStops
245
     */
246
    public function setNumStops($numStops)
247
    {
248
        $this->numStops = $numStops;
249
    }
250
}
251