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