Location::getLatitude()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Triadev\Es\Dsl\Model;
3
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)
18
    {
19 1
        $this->latitude = $latitude;
20 1
        $this->longitude = $longitude;
21 1
    }
22
    
23
    /**
24
     * @return float
25
     */
26 1
    public function getLatitude(): float
27
    {
28 1
        return $this->latitude;
29
    }
30
    
31
    /**
32
     * @return float
33
     */
34 1
    public function getLongitude(): float
35
    {
36 1
        return $this->longitude;
37
    }
38
}
39