Passed
Push — 4.x ( c37faa...bd875a )
by Doug
12:53
created

ProjectedPoint::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * PHPCoord.
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace PHPCoord;
10
11
use PHPCoord\CoordinateReferenceSystem\CoordinateReferenceSystem;
12
use PHPCoord\CoordinateReferenceSystem\Projected;
13
14
/**
15
 * Coordinate representing a point on a map projection.
16
 * @author Doug Wright
17
 */
18
abstract class ProjectedPoint extends Point
19
{
20
    /**
21
     * Coordinate reference system.
22
     * @var CoordinateReferenceSystem
23
     */
24
    protected $crs;
25
26
    public function __construct(Projected $crs)
27
    {
28
        $this->crs = $crs;
29
    }
30
31
    public function getCRS(): CoordinateReferenceSystem
32
    {
33
        return $this->crs;
34
    }
35
}
36