Completed
Push — master ( 20655c...87b69d )
by Jeroen
02:06
created

Coordinates   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLatitude() 0 4 1
A getLongitude() 0 4 1
1
<?php
2
3
namespace JeroenDesloovere\Geolocation\Result;
4
5
class Coordinates
6
{
7
    private $latitude;
8
    private $longitude;
9
10
    public function __construct($latitude, $longitude)
11
    {
12
        $this->latitude = $latitude;
13
        $this->longitude = $longitude;
14
    }
15
16
    /**
17
     * @return mixed
18
     */
19
    public function getLatitude()
20
    {
21
        return $this->latitude;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getLongitude()
28
    {
29
        return $this->longitude;
30
    }
31
}
32