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

Marker::getText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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