Coordinate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace MatthiasMullie\Geo;
3
4
/**
5
 * Please report bugs on https://github.com/matthiasmullie/geo/issues
6
 *
7
 * @author Matthias Mullie <[email protected]>
8
 *
9
 * @copyright Copyright (c) 2013, Matthias Mullie. All rights reserved.
10
 * @license MIT License
11
 */
12
class Coordinate
13
{
14
    /**
15
     * @var float
16
     */
17
    public $latitude;
18
19
    /**
20
     * @var float
21
     */
22
    public $longitude;
23
24
    /**
25
     * @var array
26
     */
27
    public $data;
28
29
    /**
30
     * @param float $latitude
31
     * @param float $longitude
32
     * @param array $data
33
     */
34
    public function __construct($latitude, $longitude, $data = array())
35
    {
36
        $this->latitude = $latitude;
37
        $this->longitude = $longitude;
38
        $this->data = $data;
39
    }
40
}
41