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.

EventRequestVO::getLocationLat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php namespace CalDAVClient\Facade\Requests;
2
/**
3
 * Copyright 2017 OpenStack Foundation
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 * http://www.apache.org/licenses/LICENSE-2.0
8
 * Unless required by applicable law or agreed to in writing, software
9
 * distributed under the License is distributed on an "AS IS" BASIS,
10
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
 * See the License for the specific language governing permissions and
12
 * limitations under the License.
13
 **/
14
15
use DateTime;
16
use DateTimeZone;
17
18
/**
19
 * Class EventRequestVO
20
 * @package CalDAVClient\Facade\Requests
21
 */
22
final class EventRequestVO
23
{
24
    /**
25
     * @var string
26
     */
27
    private $prod_id;
28
    /**
29
     * @var string
30
     */
31
    private $uid;
32
33
    /**
34
     * @var string
35
     */
36
    private $title;
37
38
    /**
39
     * @var string
40
     */
41
    private $description;
42
43
    /**
44
     * @var string
45
     */
46
    private $summary;
47
48
    /**
49
     * @var DateTime
50
     */
51
    private $start_time;
52
53
    /**
54
     * @var DateTime
55
     */
56
    private $end_time;
57
58
    /**
59
     * @var string
60
     */
61
    private $location_name;
62
63
    /**
64
     * @var string
65
     */
66
    private $location_title;
67
68
    /**
69
     * @var string
70
     */
71
    private $location_lat;
72
73
    /**
74
     * @var string
75
     */
76
    private $location_lng;
77
78
    /**
79
     * @var DateTimeZone
80
     */
81
    private $time_zone;
82
83
    /**
84
     * EventRequestDTO constructor.
85
     * @param string $prod_id
86
     * @param string $title
87
     * @param string $description
88
     * @param string $summary
89
     * @param DateTime $start_time
90
     * @param DateTime $end_time
91
     * @param DateTimeZone $time_zone
92
     * @param string $location_name
93
     * @param string $location_title
94
     * @param string $location_lat
95
     * @param string $location_lng
96
     */
97
    public function __construct
98
    (
99
        $prod_id,
100
        $title,
101
        $description,
102
        $summary,
103
        DateTime $start_time,
104
        DateTime $end_time,
105
        DateTimeZone $time_zone = null,
106
        $location_name = null,
107
        $location_title = null,
108
        $location_lat = null,
109
        $location_lng = null
110
    )
111
    {
112
        $this->prod_id         = $prod_id;
113
        $this->uid             = md5(uniqid(mt_rand(), true));
114
        $this->title           = $title;
115
        $this->description     = $description;
116
        $this->summary         = $summary;
117
        $this->start_time      = $start_time;
118
        $this->end_time        = $end_time;
119
        $this->location_name   = $location_name;
120
        $this->location_title  = $location_title;
121
        $this->location_lat    = $location_lat;
122
        $this->location_lng    = $location_lng;
123
        $this->time_zone       = $time_zone;
124
        if(is_null($this->time_zone)){
125
            $this->time_zone = new DateTimeZone('UTC');
126
        }
127
    }
128
129
    /**
130
     * @param string $uid
131
     */
132
    public function setUID($uid){
133
        $this->uid = $uid;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function getUID()
140
    {
141
        return $this->uid;
142
    }
143
144
    /**
145
     * @return string
146
     */
147
    public function getTitle()
148
    {
149
        return $this->title;
150
    }
151
152
    /**
153
     * @return string
154
     */
155
    public function getDescription()
156
    {
157
        return $this->description;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getSummary()
164
    {
165
        return $this->summary;
166
    }
167
168
    /**
169
     * @return DateTime
170
     */
171
    public function getStartTime()
172
    {
173
        return $this->start_time;
174
    }
175
176
    /**
177
     * @return DateTime
178
     */
179
    public function getEndTime()
180
    {
181
        return $this->end_time;
182
    }
183
184
    /**
185
     * @return string
186
     */
187
    public function getLocationName()
188
    {
189
        return $this->location_name;
190
    }
191
192
    /**
193
     * @return string
194
     */
195
    public function getLocationTitle()
196
    {
197
        return $this->location_title;
198
    }
199
200
    /**
201
     * @return string
202
     */
203
    public function getLocationLat()
204
    {
205
        return $this->location_lat;
206
    }
207
208
    /**
209
     * @return string
210
     */
211
    public function getLocationLng()
212
    {
213
        return $this->location_lng;
214
    }
215
216
    /**
217
     * @return DateTimeZone
218
     */
219
    public function getTimeZone(){
220
        return $this->time_zone;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getProdId()
227
    {
228
        return $this->prod_id;
229
    }
230
231
}