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

Event::getSubject()   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;
6
7
use ModernTimeline\ResultFacade\Subject;
8
use SMWDITime;
9
10
class Event {
11
12
	private $subject;
13
	private $startDate;
14
	private $endDate;
15
16
	public function __construct( Subject $subject, SMWDITime $startDate, ?SMWDITime $endDate ) {
17
		$this->subject = $subject;
18
		$this->startDate = $startDate;
19
		$this->endDate = $endDate;
20
	}
21
22
	public function getSubject(): Subject {
23
		return $this->subject;
24
	}
25
26
	public function getStartDate(): SMWDITime {
27
		return $this->startDate;
28
	}
29
30
	public function getEndDate(): ?SMWDITime {
31
		return $this->endDate;
32
	}
33
34
}
35