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

Geocentric::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 3
1
<?php
2
/**
3
 * PHPCoord.
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace PHPCoord\Coordinate\ReferenceSystem;
10
11
use PHPCoord\Coordinate\System\CoordinateSystem;
12
use PHPCoord\Datum\Datum;
13
14
class Geocentric extends CoordinateReferenceSystem
15
{
16
    public function __construct(
17
        int $epsgCode,
18
        CoordinateSystem $coordinateSystem,
19
        Datum $datum
20
    ) {
21
        $this->epsgCode = $epsgCode;
22
        $this->coordinateSystem = $coordinateSystem;
23
        $this->datum = $datum;
24
    }
25
26
    public function getEpsgCode(): int
27
    {
28
        return $this->epsgCode;
29
    }
30
31
    public function getCoordinateSystem(): CoordinateSystem
32
    {
33
        return $this->coordinateSystem;
34
    }
35
36
    public function getDatum(): Datum
37
    {
38
        return $this->datum;
39
    }
40
}
41