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

LatLongPrecision   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLatLong() 0 3 1
A getPrecision() 0 3 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