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

MapOutput::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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