Completed
Push — master ( 265af4...dd9ba2 )
by Carsten
02:36 queued 11s
created

GeoData::getGeoData()   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
class GeoData extends GeoDataAbstract implements GeoDataInterface, GeoDataProviderInterface
5
{
6
7
8
    /**
9
     * @param float $latitude
10
     * @param float $longitude
11
     */
12 4
    public function __construct( ?float $latitude = null, ?float $longitude = null)
13
    {
14 4
        $this->latitude  = $latitude;
15 4
        $this->longitude = $longitude;
16 4
    }
17
18
19
    public function setLatitude( ?float $latitude = null) : self
20
    {
21
        $this->latitude = $latitude;
22
        return $this;
23
    }
24
25
26
    public function setLongitude( ?float $longitude = null) : self
27
    {
28
        $this->longitude = $longitude;
29
        return $this;
30
    }
31
32
33
    /**
34
     * @inheritDoc
35
     * @return self
36
     */
37 4
    public function getGeoData() : ?GeoDataInterface
38
    {
39 4
        return $this;
40
    }
41
42
}
43