Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
4 | class Location |
||
5 | { |
||
6 | /** @var float */ |
||
7 | private $latitude; |
||
8 | |||
9 | /** @var float */ |
||
10 | private $longitude; |
||
11 | |||
12 | /** |
||
13 | * Location constructor. |
||
14 | * @param float $latitude |
||
15 | * @param float $longitude |
||
16 | */ |
||
17 | 1 | public function __construct(float $latitude, float $longitude) |
|
21 | 1 | } |
|
22 | |||
23 | /** |
||
24 | * @return float |
||
25 | */ |
||
26 | 1 | public function getLatitude(): float |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return float |
||
33 | */ |
||
34 | 1 | public function getLongitude(): float |
|
39 |