Passed
Push — GlobeCoordinateParser ( 7d8c3a )
by Jeroen De
02:26
created

LatLongPrecision::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace DataValues\Geo\Values;
6
7
class LatLongPrecision {
8
9
	private $latLong;
10
	private $precision;
11
12
	public function __construct( LatLongValue $latLong, Precision $precision ) {
13
		$this->latLong = $latLong;
14
		$this->precision = $precision;
15
	}
16
17
	public function getLatLong(): LatLongValue {
18
		return $this->latLong;
19
	}
20
21
	public function getPrecision(): Precision {
22
		return $this->precision;
23
	}
24
25
}
26