Completed
Push — wip ( 4d3464 )
by Jeroen De
03:36
created

MapOutput   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 25
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getHtml() 0 3 1
A getHeadItems() 0 3 1
A getResourceModules() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace Maps\Cargo;
6
7
class MapOutput {
8
9
	private $html;
10
	private $headItems;
11
	private $resourceModules;
12
13
	public function __construct( string $html, array $resourceModules, string $headItems ) {
14
		$this->html = $html;
15
		$this->resourceModules = $resourceModules;
16
		$this->headItems = $headItems;
17
	}
18
19
	public function getHtml(): string {
20
		return $this->html;
21
	}
22
23
	public function getHeadItems(): string {
24
		return $this->headItems;
25
	}
26
27
	public function getResourceModules(): array {
28
		return $this->resourceModules;
29
	}
30
31
}
32