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

GeoData   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getGeoData() 0 4 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