1
|
|
|
<?php declare(strict_types = 1); |
2
|
|
|
|
3
|
|
|
namespace ikoene\Marvel\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Event |
7
|
|
|
* @package ikoene\Marvel\Entity |
8
|
|
|
*/ |
9
|
|
|
class Event |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* The unique ID of the event resource. |
13
|
|
|
* |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* The title of the event. |
20
|
|
|
* |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
private $title; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* A description of the event. |
27
|
|
|
* |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
private $description; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* The canonical URL identifier for this resource. |
34
|
|
|
* |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
private $resourceURI; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* A set of public web site URLs for the event. |
41
|
|
|
* |
42
|
|
|
* @var array |
43
|
|
|
*/ |
44
|
|
|
private $urls; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* The date the resource was most recently modified. |
48
|
|
|
* |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $modified; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* The date of publication of the first issue in this event. |
55
|
|
|
* |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
private $start; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* The date of publication of the last issue in this event. |
62
|
|
|
* |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
private $end; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* The representative image for this event. |
69
|
|
|
* |
70
|
|
|
* @var Image |
71
|
|
|
*/ |
72
|
|
|
private $thumbnail; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* A resource list containing the comics in this event. |
76
|
|
|
* |
77
|
|
|
* @var ComicList |
78
|
|
|
*/ |
79
|
|
|
private $comics; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* A resource list containing the stories in this event. |
83
|
|
|
* |
84
|
|
|
* @var StoryList |
85
|
|
|
*/ |
86
|
|
|
private $stories; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* A resource list containing the series in this event. |
90
|
|
|
* |
91
|
|
|
* @var SeriesList |
92
|
|
|
*/ |
93
|
|
|
private $series; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* A resource list containing creators whose work appears in this event. |
97
|
|
|
* |
98
|
|
|
* @var CreatorList |
99
|
|
|
*/ |
100
|
|
|
private $creators; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* A resource list containing the characters which appear in this event. |
104
|
|
|
* |
105
|
|
|
* @var CharacterList |
106
|
|
|
*/ |
107
|
|
|
private $characters; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* A summary representation of the event which follows this event. |
111
|
|
|
* |
112
|
|
|
* @var EventSummary |
113
|
|
|
*/ |
114
|
|
|
private $next; |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* A summary representation of the event which preceded this event. |
118
|
|
|
* |
119
|
|
|
* @var EventSummary |
120
|
|
|
*/ |
121
|
|
|
private $previous; |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @return int |
125
|
|
|
*/ |
126
|
|
|
public function getId() |
127
|
|
|
{ |
128
|
|
|
return $this->id; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @param int $id |
133
|
|
|
*/ |
134
|
|
|
public function setId(int $id) |
135
|
|
|
{ |
136
|
|
|
$this->id = $id; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @return string |
141
|
|
|
*/ |
142
|
|
|
public function getTitle() |
143
|
|
|
{ |
144
|
|
|
return $this->title; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @param string $title |
149
|
|
|
*/ |
150
|
|
|
public function setTitle(string $title) |
151
|
|
|
{ |
152
|
|
|
$this->title = $title; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @return string |
157
|
|
|
*/ |
158
|
|
|
public function getDescription() |
159
|
|
|
{ |
160
|
|
|
return $this->description; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @param string $description |
165
|
|
|
*/ |
166
|
|
|
public function setDescription(string $description) |
167
|
|
|
{ |
168
|
|
|
$this->description = $description; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* @return string |
173
|
|
|
*/ |
174
|
|
|
public function getResourceURI() |
175
|
|
|
{ |
176
|
|
|
return $this->resourceURI; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @param string $resourceURI |
181
|
|
|
*/ |
182
|
|
|
public function setResourceURI(string $resourceURI) |
183
|
|
|
{ |
184
|
|
|
$this->resourceURI = $resourceURI; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @return array |
189
|
|
|
*/ |
190
|
|
|
public function getUrls() |
191
|
|
|
{ |
192
|
|
|
return $this->urls; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @param array $urls |
197
|
|
|
*/ |
198
|
|
|
public function setUrls(array $urls) |
199
|
|
|
{ |
200
|
|
|
$this->urls = $urls; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return string |
205
|
|
|
*/ |
206
|
|
|
public function getModified() |
207
|
|
|
{ |
208
|
|
|
return $this->modified; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @param string $modified |
213
|
|
|
*/ |
214
|
|
|
public function setModified(string $modified) |
215
|
|
|
{ |
216
|
|
|
$this->modified = $modified; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @return string |
221
|
|
|
*/ |
222
|
|
|
public function getStart() |
223
|
|
|
{ |
224
|
|
|
return $this->start; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @param string $start |
229
|
|
|
*/ |
230
|
|
|
public function setStart($start) |
231
|
|
|
{ |
232
|
|
|
$this->start = $start; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @return string |
237
|
|
|
*/ |
238
|
|
|
public function getEnd() |
239
|
|
|
{ |
240
|
|
|
return $this->end; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @param string $end |
245
|
|
|
*/ |
246
|
|
|
public function setEnd($end) |
247
|
|
|
{ |
248
|
|
|
$this->end = $end; |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* @return Image |
253
|
|
|
*/ |
254
|
|
|
public function getThumbnail() |
255
|
|
|
{ |
256
|
|
|
return $this->thumbnail; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* @param Image $thumbnail |
261
|
|
|
*/ |
262
|
|
|
public function setThumbnail(Image $thumbnail) |
263
|
|
|
{ |
264
|
|
|
$this->thumbnail = $thumbnail; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* @return ComicList |
269
|
|
|
*/ |
270
|
|
|
public function getComics() |
271
|
|
|
{ |
272
|
|
|
return $this->comics; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @param ComicList $comics |
277
|
|
|
*/ |
278
|
|
|
public function setComics(ComicList $comics) |
279
|
|
|
{ |
280
|
|
|
$this->comics = $comics; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @return StoryList |
285
|
|
|
*/ |
286
|
|
|
public function getStories() |
287
|
|
|
{ |
288
|
|
|
return $this->stories; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* @param StoryList $stories |
293
|
|
|
*/ |
294
|
|
|
public function setStories(StoryList $stories) |
295
|
|
|
{ |
296
|
|
|
$this->stories = $stories; |
297
|
|
|
} |
298
|
|
|
|
299
|
|
|
/** |
300
|
|
|
* @return SeriesList |
301
|
|
|
*/ |
302
|
|
|
public function getSeries() |
303
|
|
|
{ |
304
|
|
|
return $this->series; |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* @param SeriesList $series |
309
|
|
|
*/ |
310
|
|
|
public function setSeries(SeriesList $series) |
311
|
|
|
{ |
312
|
|
|
$this->series = $series; |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* @return CreatorList |
317
|
|
|
*/ |
318
|
|
|
public function getCreators() |
319
|
|
|
{ |
320
|
|
|
return $this->creators; |
321
|
|
|
} |
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* @param CreatorList $creators |
325
|
|
|
*/ |
326
|
|
|
public function setCreators(CreatorList $creators) |
327
|
|
|
{ |
328
|
|
|
$this->creators = $creators; |
329
|
|
|
} |
330
|
|
|
|
331
|
|
|
/** |
332
|
|
|
* @return CharacterList |
333
|
|
|
*/ |
334
|
|
|
public function getCharacters() |
335
|
|
|
{ |
336
|
|
|
return $this->characters; |
337
|
|
|
} |
338
|
|
|
|
339
|
|
|
/** |
340
|
|
|
* @param CharacterList $characters |
341
|
|
|
*/ |
342
|
|
|
public function setCharacters(CharacterList $characters) |
343
|
|
|
{ |
344
|
|
|
$this->characters = $characters; |
345
|
|
|
} |
346
|
|
|
|
347
|
|
|
/** |
348
|
|
|
* @return EventSummary |
349
|
|
|
*/ |
350
|
|
|
public function getNext() |
351
|
|
|
{ |
352
|
|
|
return $this->next; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @param EventSummary $next |
357
|
|
|
*/ |
358
|
|
|
public function setNext($next) |
359
|
|
|
{ |
360
|
|
|
$this->next = $next; |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* @return EventSummary |
365
|
|
|
*/ |
366
|
|
|
public function getPrevious() |
367
|
|
|
{ |
368
|
|
|
return $this->previous; |
369
|
|
|
} |
370
|
|
|
|
371
|
|
|
/** |
372
|
|
|
* @param EventSummary $previous |
373
|
|
|
*/ |
374
|
|
|
public function setPrevious($previous) |
375
|
|
|
{ |
376
|
|
|
$this->previous = $previous; |
377
|
|
|
} |
378
|
|
|
} |
379
|
|
|
|