Completed
Push — master ( 9daf78...0a1cd4 )
by Carsten
08:37
created

GeoData::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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 8
    public function __construct( $latitude, $longitude)
13
    {
14 8
        $this->latitude  = $latitude;
15 8
        $this->longitude = $longitude;
16 8
    }
17
18
19
    /**
20
     * @inheritDoc
21
     */
22 4
    public function getGeoData()
23
    {
24 4
        return $this;
25
    }
26
27
}
28