summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php
blob: 2d67bcdab0f08752362f2db3ffc32b92b4618c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php

declare( strict_types = 1 );

namespace ModernTimeline\ResultFacade;

use SMW\DIWikiPage;

/**
 * Data from a single subject (page or subobject)
 */
class Subject {

	private $wikiPage;
	private $propertyValueCollections;

	/**
	 * @param DIWikiPage $wikiPage
	 * @param PropertyValueCollection[] $propertyValueCollections
	 */
	public function __construct( DIWikiPage $wikiPage, array $propertyValueCollections ) {
		$this->wikiPage = $wikiPage;
		$this->propertyValueCollections = $propertyValueCollections;
	}

	public function getWikiPage(): DIWikiPage {
		return $this->wikiPage;
	}

	/**
	 * @return PropertyValueCollection[]
	 */
	public function getPropertyValueCollections(): array {
		return $this->propertyValueCollections;
	}



}