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

GeoDataTrait::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
trait GeoDataTrait
5
{
6
7
    /**
8
     * @var float
9
     */
10
    public $latitude;
11
12
    /**
13
     * @var float
14
     */
15
    public $longitude;
16
17
18
    /**
19
     * @return float
20
     */
21 8
    public function getLatitude()
22
    {
23 8
        return $this->latitude;
24
    }
25
26
    /**
27
     * @return float
28
     */
29 8
    public function getLongitude()
30
    {
31 8
        return $this->longitude;
32
    }
33
34
35
    /**
36
     * @return array[float]
0 ignored issues
show
Documentation introduced by
The doc-type array[float] could not be parsed: Expected "]" at position 2, but found "float". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
37
     */
38 8
    public function getLatLon()
39
    {
40
        return array(
41 8
            $this->getLatitude(),
42 8
            $this->getLongitude()
43 2
        );
44
    }
45
46
}
47