summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ModernTimeline/src/Event.php
blob: 821e5810bed21e4654d2a565cc305eb63ac86462 (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
<?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;
	}

}