diff options
Diffstat (limited to 'www/wiki/extensions/ModernTimeline/src/Event.php')
-rw-r--r-- | www/wiki/extensions/ModernTimeline/src/Event.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www/wiki/extensions/ModernTimeline/src/Event.php b/www/wiki/extensions/ModernTimeline/src/Event.php new file mode 100644 index 00000000..821e5810 --- /dev/null +++ b/www/wiki/extensions/ModernTimeline/src/Event.php @@ -0,0 +1,34 @@ +<?php + +declare( strict_types = 1 ); + +namespace ModernTimeline; + +use ModernTimeline\ResultFacade\Subject; +use SMWDITime; + +class Event { + + private $subject; + private $startDate; + private $endDate; + + public function __construct( Subject $subject, SMWDITime $startDate, ?SMWDITime $endDate ) { + $this->subject = $subject; + $this->startDate = $startDate; + $this->endDate = $endDate; + } + + public function getSubject(): Subject { + return $this->subject; + } + + public function getStartDate(): SMWDITime { + return $this->startDate; + } + + public function getEndDate(): ?SMWDITime { + return $this->endDate; + } + +} |