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

MapData   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 76.92%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 36
ccs 10
cts 13
cp 0.7692
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getParameters() 0 3 1
A setParameters() 0 3 1
A getMarkers() 0 3 1
A setMarkers() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Map;
6
7
class MapData {
8
9
	private $parameters;
10
11
	/**
12
	 * @var Marker[]
13
	 */
14
	private $markers = [];
15
16 29
	public function __construct( array $parameters ) {
17 29
		$this->parameters = $parameters;
18 29
	}
19
20 29
	public function getParameters(): array {
21 29
		return $this->parameters;
22
	}
23
24 27
	public function setParameters( array $parameters ): void {
25 27
		$this->parameters = $parameters;
26 27
	}
27
28
	/**
29
	 * @return Marker[]
30
	 */
31 29
	public function getMarkers(): array {
32 29
		return $this->markers;
33
	}
34
35
	/**
36
	 * @param Marker[] $markers
37
	 */
38
	public function setMarkers( array $markers ): void {
39
		$this->markers = $markers;
40
	}
41
42
}
43