Completed
Pull Request — master (#13)
by Jeroen De
03:37
created

PropertyValueCollection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace ModernTimeline\ResultFacade;
6
7
use SMW\Query\PrintRequest;
8
use SMWDataItem;
9
10
class PropertyValueCollection {
11
12
	private $printRequest;
13
	private $dataItems;
14
15
	/**
16
	 * @param PrintRequest $printRequest
17
	 * @param SMWDataItem[] $dataItems
18
	 */
19 3
	public function __construct( PrintRequest $printRequest, array $dataItems ) {
20 3
		$this->printRequest = $printRequest;
21 3
		$this->dataItems = $dataItems;
22 3
	}
23
24 3
	public function getPrintRequest(): PrintRequest {
25 3
		return $this->printRequest;
26
	}
27
28
	/**
29
	 * @return SMWDataItem[]
30
	 */
31 3
	public function getDataItems(): array {
32 3
		return $this->dataItems;
33
	}
34
35
}
36