1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* (c) Christian Gripp <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Core23\LastFm\Model; |
13
|
|
|
|
14
|
|
|
final class EventInfo |
15
|
|
|
{ |
16
|
|
|
/** |
17
|
|
|
* @var int |
18
|
|
|
*/ |
19
|
|
|
private $eventId; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string |
23
|
|
|
*/ |
24
|
|
|
private $title; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
*/ |
29
|
|
|
private $description; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var \DateTime|null |
33
|
|
|
*/ |
34
|
|
|
private $eventDate; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var \DateTime|null |
38
|
|
|
*/ |
39
|
|
|
private $eventEndDate; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var string|null |
43
|
|
|
*/ |
44
|
|
|
private $eventWebsite; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var Image|null |
48
|
|
|
*/ |
49
|
|
|
private $image; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var string|null |
53
|
|
|
*/ |
54
|
|
|
private $url; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var bool |
58
|
|
|
*/ |
59
|
|
|
private $festival; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var Venue |
63
|
|
|
*/ |
64
|
|
|
private $venue; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var Artist[] |
68
|
|
|
*/ |
69
|
|
|
private $artists; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @param Artist[] $artists |
73
|
|
|
*/ |
74
|
|
|
public function __construct( |
75
|
|
|
int $eventId, |
76
|
|
|
string $title, |
77
|
|
|
?string $description, |
78
|
|
|
?\DateTime $eventDate, |
79
|
|
|
?\DateTime $eventEndDate, |
80
|
|
|
?string $eventWebsite, |
81
|
|
|
?Image $image, |
82
|
|
|
?string $url, |
83
|
|
|
bool $festival, |
84
|
|
|
Venue $venue, |
85
|
|
|
array $artists |
86
|
|
|
) { |
87
|
|
|
$this->eventId = $eventId; |
88
|
|
|
$this->title = $title; |
89
|
|
|
$this->description = $description; |
90
|
|
|
$this->eventDate = $eventDate; |
91
|
|
|
$this->eventEndDate = $eventEndDate; |
92
|
|
|
$this->eventWebsite = $eventWebsite; |
93
|
|
|
$this->image = $image; |
94
|
|
|
$this->url = $url; |
95
|
|
|
$this->festival = $festival; |
96
|
|
|
$this->venue = $venue; |
97
|
|
|
$this->artists = $artists; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function getEventId(): int |
101
|
|
|
{ |
102
|
|
|
return $this->eventId; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function getTitle(): string |
106
|
|
|
{ |
107
|
|
|
return $this->title; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function getDescription(): ?string |
111
|
|
|
{ |
112
|
|
|
return $this->description; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getEventDate(): ?\DateTime |
116
|
|
|
{ |
117
|
|
|
return $this->eventDate; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function getEventEndDate(): ?\DateTime |
121
|
|
|
{ |
122
|
|
|
return $this->eventEndDate; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function getEventWebsite(): ?string |
126
|
|
|
{ |
127
|
|
|
return $this->eventWebsite; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function getImage(): ?Image |
131
|
|
|
{ |
132
|
|
|
return $this->image; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function getUrl(): ?string |
136
|
|
|
{ |
137
|
|
|
return $this->url; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function isFestival(): bool |
141
|
|
|
{ |
142
|
|
|
return $this->festival; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function getVenue(): Venue |
146
|
|
|
{ |
147
|
|
|
return $this->venue; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return Artist[] |
152
|
|
|
*/ |
153
|
|
|
public function getArtists(): array |
154
|
|
|
{ |
155
|
|
|
return $this->artists; |
156
|
|
|
} |
157
|
|
|
} |
158
|
|
|
|