summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php')
-rw-r--r--www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php b/www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php
new file mode 100644
index 00000000..2d67bcda
--- /dev/null
+++ b/www/wiki/extensions/ModernTimeline/src/ResultFacade/Subject.php
@@ -0,0 +1,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;
+ }
+
+
+
+} \ No newline at end of file