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

Subject::getPropertyValueCollections()   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\DIWikiPage;
8
9
/**
10
 * Data from a single subject (page or subobject)
11
 */
12
class Subject {
13
14
	private $wikiPage;
15
	private $propertyValueCollections;
16
17
	/**
18
	 * @param DIWikiPage $wikiPage
19
	 * @param PropertyValueCollection[] $propertyValueCollections
20
	 */
21
	public function __construct( DIWikiPage $wikiPage, array $propertyValueCollections ) {
22
		$this->wikiPage = $wikiPage;
23
		$this->propertyValueCollections = $propertyValueCollections;
24
	}
25
26
	public function getWikiPage(): DIWikiPage {
27
		return $this->wikiPage;
28
	}
29
30
	/**
31
	 * @return PropertyValueCollection[]
32
	 */
33
	public function getPropertyValueCollections(): array {
34
		return $this->propertyValueCollections;
35
	}
36
37
38
39
}