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

Point::getLat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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