Location::getLatitude()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Marek\OpenWeatherMap\API\Value\Response;
6
7
class Location
8
{
9
    /**
10
     * @var float
11
     */
12
    protected $latitude;
13
14
    /**
15
     * @var float
16
     */
17
    protected $longitude;
18
19
    /**
20
     * Location constructor.
21
     *
22
     * @param float $latitude
23
     * @param float $longitude
24
     */
25
    public function __construct($latitude, $longitude)
26
    {
27
        $this->latitude = $latitude;
28
        $this->longitude = $longitude;
29
    }
30
31
    /**
32
     * @return float
33
     */
34
    public function getLatitude()
35
    {
36
        return $this->latitude;
37
    }
38
39
    /**
40
     * @return float
41
     */
42
    public function getLongitude()
43
    {
44
        return $this->longitude;
45
    }
46
}
47