Completed
Push — master ( f77170...d04d76 )
by Jeroen De
06:18 queued 12s
created

PreciseLatLong   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
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 PreciseLatLong {
10
11
	private $latLong;
12
	private $precision;
13
14
	public function __construct( LatLongValue $latLong, Precision $precision ) {
15
		$this->latLong = $latLong;
16
		$this->precision = $precision;
17
	}
18
19
	public function getLatLong(): LatLongValue {
20
		return $this->latLong;
21
	}
22
23
	public function getPrecision(): Precision {
24
		return $this->precision;
25
	}
26
27
}
28