Completed
Push — master ( 4d0076...81538e )
by Jeroen De
26s queued 11s
created

Marker   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 39
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCoordinates() 0 3 1
A getIconUrl() 0 3 1
A setIconUrl() 0 3 1
A getText() 0 3 1
A setText() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Map;
6
7
use DataValues\Geo\Values\LatLongValue;
8
9
class Marker {
10
11
	private $coordinates;
12
13
	/**
14
	 * @var string
15
	 */
16
	private $iconUrl = '';
17
18
	/**
19
	 * @var string
20
	 */
21
	private $text = '';
22
23
	public function __construct( LatLongValue $coordinates ) {
24
		$this->coordinates = $coordinates;
25
	}
26
27
	public function getCoordinates(): LatLongValue {
28
		return $this->coordinates;
29
	}
30
31
	public function getIconUrl(): string {
32
		return $this->iconUrl;
33
	}
34
35
	public function setIconUrl( string $iconUrl ): void {
36
		$this->iconUrl = $iconUrl;
37
	}
38
39
	public function getText(): string {
40
		return $this->text;
41
	}
42
43
	public function setText( string $text ): void {
44
		$this->text = $text;
45
	}
46
47
}
48