Location   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLatitude() 0 3 1
A getLongitude() 0 3 1
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