1 | <?php |
||
7 | class Event |
||
8 | { |
||
9 | private $startAt; |
||
10 | private $endAt; |
||
11 | private $summary; |
||
12 | private $description; |
||
13 | private $recurrenceRule; |
||
14 | private $recurrenceId; |
||
15 | |||
16 | 4 | public function __construct(\DateTimeImmutable $startAt, \DateTimeImmutable $endAt) |
|
21 | |||
22 | 3 | public function isRecurring(): bool |
|
26 | |||
27 | 3 | public function isARecurrence(): bool |
|
31 | |||
32 | 1 | public function isBetween(\DateTimeImmutable $from, \DateTimeImmutable $to, bool $strict = true): bool |
|
48 | |||
49 | 3 | public function getLastEventStartAt(): \DateTimeImmutable |
|
57 | |||
58 | 3 | public function getStartAt(): ?\DateTimeImmutable |
|
62 | |||
63 | 3 | public function getEndAt(): ?\DateTimeImmutable |
|
67 | |||
68 | 3 | public function getSummary(): ?string |
|
72 | |||
73 | 3 | public function setSummary(string $summary): self |
|
79 | |||
80 | 3 | public function getDescription(): ?string |
|
84 | |||
85 | 3 | public function setDescription(string $description): self |
|
91 | |||
92 | 3 | public function getRecurrenceRule(): ?RecurrenceRule |
|
96 | |||
97 | 3 | public function setRecurrenceRule(RecurrenceRule $recurrenceRule): self |
|
103 | |||
104 | 2 | public function getRecurrenceId(): ?\DateTimeImmutable |
|
108 | |||
109 | 2 | public function setRecurrenceId(\DateTimeImmutable $recurrenceId): self |
|
115 | } |
||
116 |