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 | /** |
||
42 | * @param int $eventId |
||
43 | * @param string $title |
||
44 | * @param \DateTime $eventDate |
||
45 | * @param string $url |
||
46 | * @param Venue|null $venue |
||
47 | */ |
||
48 | public function __construct(int $eventId, string $title, \DateTime $eventDate, string $url, ?Venue $venue) |
||
56 | |||
57 | /** |
||
58 | * @return int |
||
59 | */ |
||
60 | public function getEventId(): int |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getTitle(): string |
||
72 | |||
73 | /** |
||
74 | * @return \DateTime |
||
75 | */ |
||
76 | public function getEventDate(): \DateTime |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getUrl(): ?string |
||
88 | |||
89 | /** |
||
90 | * @return Venue|null |
||
91 | */ |
||
92 | public function getVenue(): ?Venue |
||
96 | } |
||
97 |