| 1 | <?php |
||
| 14 | final class Event |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | private $eventId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $title; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var \DateTime |
||
| 28 | */ |
||
| 29 | private $eventDate; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $url; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var Venue|null |
||
| 38 | */ |
||
| 39 | private $venue; |
||
| 40 | |||
| 41 | public function __construct(int $eventId, string $title, \DateTime $eventDate, string $url, ?Venue $venue) |
||
| 49 | |||
| 50 | public function getEventId(): int |
||
| 54 | |||
| 55 | public function getTitle(): string |
||
| 59 | |||
| 60 | public function getEventDate(): \DateTime |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getUrl(): ?string |
||
| 72 | |||
| 73 | public function getVenue(): ?Venue |
||
| 77 | } |
||
| 78 |