Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | trait TimeLimitedAwareTrait |
||
11 | { |
||
12 | protected $startDate; |
||
13 | |||
14 | protected $endDate; |
||
15 | |||
16 | protected $active; |
||
17 | |||
18 | public function getStartDate(): ?DateTimeInterface |
||
19 | { |
||
20 | return $this->startDate; |
||
21 | } |
||
22 | |||
23 | public function setStartDate(DateTimeInterface $startDate): void |
||
24 | { |
||
25 | $this->startDate = $startDate; |
||
26 | } |
||
27 | |||
28 | public function getEndDate(): ?DateTimeInterface |
||
29 | { |
||
30 | return $this->endDate; |
||
31 | } |
||
32 | |||
33 | public function setEndDate(DateTimeInterface $endDate): void |
||
36 | } |
||
37 | |||
38 | public function isActive(): bool |
||
52 | } |
||
53 | } |
||
54 |