Passed
Push — GlobeCoordinateParser ( c9f454...5b34b0 )
by Jeroen De
02:14
created

LatLongPrecision::getPrecision()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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