Completed
Push — master ( 952e89...59c62b )
by Jeroen De
03:27
created

PropertyValueCollection::getPrintRequest()   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 2
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 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
	public function __construct( PrintRequest $printRequest, array $dataItems ) {
20
		$this->printRequest = $printRequest;
21
		$this->dataItems = $dataItems;
22
	}
23
24
	public function getPrintRequest(): PrintRequest {
25
		return $this->printRequest;
26
	}
27
28
	/**
29
	 * @return SMWDataItem[]
30
	 */
31
	public function getDataItems(): array {
32
		return $this->dataItems;
33
	}
34
35
}
36