BaseIp::getLat()   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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Src;
4
/**
5
 * Class BaseIp
6
 *
7
 * @package Src
8
 */
9
class BaseIp implements IpAddressInterface
10
{
11
    protected $as;
12
    protected $city;
13
    protected $country;
14
    protected $countryCode;
15
    protected $isp;
16
    protected $lat;
17
    protected $lon;
18
    protected $org;
19
    protected $query;
20
    protected $region;
21
    protected $regionName;
22
    protected $status;
23
    protected $timezone;
24
    protected $zip;
25
26
27
    /**
28
     * getAs
29
     *
30
     * @return string
31
     *
32
     */
33
    public function getAs(): string
34
    {
35
        return (string)$this->as;
36
    }
37
38
    /**
39
     * setAs
40
     *
41
     * @param string $as as
42
     *
43
     * @return $this
44
     *
45
     */
46
    public function setAs(string $as)
47
    {
48
        $this->as = $as;
49
50
        return $this;
51
    }
52
53
    /**
54
     * getCity
55
     *
56
     * @return string
57
     *
58
     */
59
    public function getCity(): string
60
    {
61
        return (string)$this->city;
62
    }
63
64
    /**
65
     * setCity
66
     *
67
     * @param string $city city
68
     *
69
     * @return $this
70
     *
71
     */
72
    public function setCity(string $city)
73
    {
74
        $this->city = $city;
75
76
        return $this;
77
    }
78
79
    /**
80
     * getCountry
81
     *
82
     * @return string
83
     *
84
     */
85
    public function getCountry(): string
86
    {
87
        return (string)$this->country;
88
    }
89
90
    /**
91
     * setCountry
92
     *
93
     * @param string $country country
94
     *
95
     * @return $this
96
     *
97
     */
98
    public function setCountry(string $country)
99
    {
100
        $this->country = $country;
101
102
        return $this;
103
    }
104
105
    /**
106
     * getCountryCode
107
     *
108
     * @return string
109
     *
110
     */
111
    public function getCountryCode(): string
112
    {
113
        return (string)$this->countryCode;
114
    }
115
116
    /**
117
     * setCountryCode
118
     *
119
     * @param string $countryCode countryCode
120
     *
121
     * @return $this
122
     *
123
     */
124
    public function setCountryCode(string $countryCode)
125
    {
126
        $this->countryCode = $countryCode;
127
128
        return $this;
129
    }
130
131
    /**
132
     * getIsp
133
     *
134
     * @return string
135
     *
136
     */
137
    public function getIsp(): string
138
    {
139
        return (string)$this->isp;
140
    }
141
142
    /**
143
     * setIsp
144
     *
145
     * @param string $isp isp
146
     *
147
     * @return $this
148
     *
149
     */
150
    public function setIsp(string $isp)
151
    {
152
        $this->isp = $isp;
153
154
        return $this;
155
    }
156
157
    /**
158
     * getLat
159
     *
160
     * @return string
161
     *
162
     */
163
    public function getLat(): string
164
    {
165
        return (string)$this->lat;
166
    }
167
168
    /**
169
     * setLat
170
     *
171
     * @param string $lat lat
172
     *
173
     * @return $this
174
     *
175
     */
176
    public function setLat(string $lat)
177
    {
178
        $this->lat = $lat;
179
180
        return $this;
181
    }
182
183
    /**
184
     * getLon
185
     *
186
     * @return string
187
     *
188
     */
189
    public function getLon(): string
190
    {
191
        return (string)$this->lon;
192
    }
193
194
    /**
195
     * setLon
196
     *
197
     * @param string $lon lon
198
     *
199
     * @return $this
200
     *
201
     */
202
    public function setLon(string $lon)
203
    {
204
        $this->lon = $lon;
205
206
        return $this;
207
    }
208
209
    /**
210
     * getOrg
211
     *
212
     * @return string
213
     *
214
     */
215
    public function getOrg(): string
216
    {
217
        return (string)$this->org;
218
    }
219
220
    /**
221
     * setOrg
222
     *
223
     * @param string $org org
224
     *
225
     * @return $this
226
     *
227
     */
228
    public function setOrg(string $org)
229
    {
230
        $this->org = $org;
231
232
        return $this;
233
    }
234
235
    /**
236
     * getIp
237
     *
238
     * @return string
239
     *
240
     */
241
    public function getIp(): string
242
    {
243
        return (string)$this->query;
244
    }
245
246
    /**
247
     * setIp
248
     *
249
     * @param string $ip ip
250
     *
251
     * @return $this
252
     *
253
     */
254
    public function setIp(string $ip)
255
    {
256
        $this->query = $ip;
257
258
        return $this;
259
    }
260
261
    /**
262
     * getRegion
263
     *
264
     * @return string
265
     *
266
     */
267
    public function getRegion(): string
268
    {
269
        return (string)$this->region;
270
    }
271
272
    /**
273
     * setRegion
274
     *
275
     * @param string $region region
276
     *
277
     * @return $this
278
     *
279
     */
280
    public function setRegion(string $region)
281
    {
282
        $this->region = $region;
283
284
        return $this;
285
    }
286
287
    /**
288
     * getRegionName
289
     *
290
     * @return string
291
     *
292
     */
293
    public function getRegionName(): string
294
    {
295
        return (string)$this->regionName;
296
    }
297
298
    /**
299
     * setRegionName
300
     *
301
     * @param string $regionName regionName
302
     *
303
     * @return $this
304
     *
305
     */
306
    public function setRegionName(string $regionName)
307
    {
308
        $this->regionName = $regionName;
309
310
        return $this;
311
    }
312
313
    /**
314
     * getStatus
315
     *
316
     * @return string
317
     *
318
     */
319
    public function getStatus(): string
320
    {
321
        return (string)$this->status;
322
    }
323
324
    /**
325
     * setStatus
326
     *
327
     * @param string $status status
328
     *
329
     * @return $this
330
     *
331
     */
332
    public function setStatus(string $status)
333
    {
334
        $this->status = $status;
335
336
        return $this;
337
    }
338
339
    /**
340
     * getTimezone
341
     *
342
     * @return string
343
     *
344
     */
345
    public function getTimezone(): string
346
    {
347
        return (string)$this->timezone;
348
    }
349
350
    /**
351
     * setTimezone
352
     *
353
     * @param string $timezone timezone
354
     *
355
     * @return $this
356
     *
357
     */
358
    public function setTimezone(string $timezone)
359
    {
360
        $this->timezone = $timezone;
361
362
        return $this;
363
    }
364
365
    /**
366
     * getZip
367
     *
368
     * @return string
369
     *
370
     */
371
    public function getZip(): string
372
    {
373
        return (string)$this->zip;
374
    }
375
376
    /**
377
     * setZip
378
     *
379
     * @param string $zip zip
380
     *
381
     * @return $this
382
     *
383
     */
384
    public function setZip(string $zip)
385
    {
386
        $this->zip = $zip;
387
388
        return $this;
389
    }
390
}
391