Completed
Push — master ( 26e49b...df3255 )
by Carsten
02:40 queued 10s
created

GeoDataAbstract::getLatitude()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Germania\GeoData;
3
4
abstract class GeoDataAbstract implements GeoDataInterface
5
{
6
7
8
    /**
9
     * @var float
10
     */
11
    public $latitude;
12
13
    /**
14
     * @var float
15
     */
16
    public $longitude;
17
18
19
    /**
20
     * @inheritDoc
21
     */
22 2
    public function getLatitude() : ?float
23
    {
24 2
        return $this->latitude;
25
    }
26
27
    /**
28
     * @inheritDoc
29
     */
30 2
    public function getLongitude() : ?float
31
    {
32 2
        return $this->longitude;
33
    }
34
35
36
    /**
37
     * @inheritDoc
38
     */
39 2
    public function getLatLon() : array
40
    {
41
        return array(
42 2
            $this->getLatitude(),
43 2
            $this->getLongitude()
44
        );
45
    }
46
47
}
48