Completed
Push — master ( 7d5940...317e1d )
by Carsten
02:33
created

GeoDataAbstract::getSource()   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
     * @var string|null
20
     */
21
    public $source;
22
23
24
    /**
25
     * @inheritDoc
26
     */
27 6
    public function getLatitude() : ?float
28
    {
29 6
        return $this->latitude;
30
    }
31
32
    /**
33
     * @inheritDoc
34
     */
35 6
    public function getLongitude() : ?float
36
    {
37 6
        return $this->longitude;
38
    }
39
40
41
    /**
42
     * @inheritDoc
43
     */
44 6
    public function getLatLon() : array
45
    {
46
        return array(
47 6
            $this->getLatitude(),
48 6
            $this->getLongitude()
49
        );
50
    }
51
52
53
    /**
54
     * @inheritDoc
55
     */
56 2
    public function getSource() : ?string
57
    {
58 2
        return $this->source;
59
    }    
60
61
}
62