Completed
Push — master ( 88792f...ba8ac8 )
by Karsten
08:30 queued 06:31
created

Point   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 35
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLat() 0 4 1
A getLng() 0 4 1
1
<?php
2
/**
3
 * File was created 03.03.2016 13:39
4
 */
5
6
namespace PeekAndPoke\Component\GeoJson;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class Point
12
{
13
    /** @var float */
14
    private $lat;
15
    /** @var float */
16
    private $lng;
17
18
    /**
19
     * Point constructor.
20
     *
21
     * @param float $lat
22
     * @param float $lng
23
     */
24
    public function __construct($lat, $lng)
25
    {
26
        $this->lat = (float) $lat;
27
        $this->lng = (float) $lng;
28
    }
29
30
    /**
31
     * @return float
32
     */
33
    public function getLat()
34
    {
35
        return $this->lat;
36
    }
37
38
    /**
39
     * @return float
40
     */
41
    public function getLng()
42
    {
43
        return $this->lng;
44
    }
45
}
46