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

LatLongPrecision   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

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\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