Bounds::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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 Bounds
13
{
14
    /**
15
     * @var Coordinate
16
     */
17
    public $ne;
18
19
    /**
20
     * @var Coordinate
21
     */
22
    public $sw;
23
24
    /**
25
     * @param Coordinate $ne North-east coordinate
26
     * @param Coordinate $sw South-west coordinate
27
     */
28
    public function __construct(Coordinate $ne, Coordinate $sw)
29
    {
30
        $this->ne = $ne;
31
        $this->sw = $sw;
32
    }
33
}
34