Coordinate::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
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