|
1
|
|
|
<?php declare(strict_types = 1); |
|
2
|
|
|
|
|
3
|
|
|
namespace ikoene\Marvel\Entity; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class Creator |
|
7
|
|
|
* @package ikoene\Marvel\Entity |
|
8
|
|
|
*/ |
|
9
|
|
|
class Creator |
|
10
|
|
|
{ |
|
11
|
|
|
/** |
|
12
|
|
|
* The unique ID of the creator resource. |
|
13
|
|
|
* |
|
14
|
|
|
* @var int |
|
15
|
|
|
*/ |
|
16
|
|
|
private $id; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* The first name of the creator. |
|
20
|
|
|
* |
|
21
|
|
|
* @var string |
|
22
|
|
|
*/ |
|
23
|
|
|
private $firstName; |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* The middle name of the creator. |
|
27
|
|
|
* |
|
28
|
|
|
* @var string |
|
29
|
|
|
*/ |
|
30
|
|
|
private $middleName; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* The last name of the creator. |
|
34
|
|
|
* |
|
35
|
|
|
* @var string |
|
36
|
|
|
*/ |
|
37
|
|
|
private $lastName; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* The suffix or honorific for the creator. |
|
41
|
|
|
* |
|
42
|
|
|
* @var string |
|
43
|
|
|
*/ |
|
44
|
|
|
private $suffix; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* The full name of the creator (a space-separated concatenation of the above four fields). |
|
48
|
|
|
* |
|
49
|
|
|
* @var string |
|
50
|
|
|
*/ |
|
51
|
|
|
private $fullName; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* The date the resource was most recently modified. |
|
55
|
|
|
* |
|
56
|
|
|
* @var string |
|
57
|
|
|
*/ |
|
58
|
|
|
private $modified; |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* The canonical URL identifier for this resource. |
|
62
|
|
|
* |
|
63
|
|
|
* @var string |
|
64
|
|
|
*/ |
|
65
|
|
|
private $resourceURI; |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* A set of public web site URLs for the resource. |
|
69
|
|
|
* |
|
70
|
|
|
* @var array |
|
71
|
|
|
*/ |
|
72
|
|
|
private $urls; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* The representative image for this creator. |
|
76
|
|
|
* |
|
77
|
|
|
* @var Image |
|
78
|
|
|
*/ |
|
79
|
|
|
private $thumbnail; |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* A resource list containing the series which feature work by this creator. |
|
83
|
|
|
* |
|
84
|
|
|
* @var SeriesList |
|
85
|
|
|
*/ |
|
86
|
|
|
private $series; |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* A resource list containing the stories which feature work by this creator. |
|
90
|
|
|
* |
|
91
|
|
|
* @var StoryList |
|
92
|
|
|
*/ |
|
93
|
|
|
private $stories; |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* A resource list containing the comics which feature work by this creator. |
|
97
|
|
|
* |
|
98
|
|
|
* @var ComicList |
|
99
|
|
|
*/ |
|
100
|
|
|
private $comics; |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* A resource list containing the events which feature work by this creator. |
|
104
|
|
|
* |
|
105
|
|
|
* @var EventList |
|
106
|
|
|
*/ |
|
107
|
|
|
private $events; |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* @return int |
|
111
|
|
|
*/ |
|
112
|
|
|
public function getId() |
|
113
|
|
|
{ |
|
114
|
|
|
return $this->id; |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
/** |
|
118
|
|
|
* @param int $id |
|
119
|
|
|
*/ |
|
120
|
|
|
public function setId(int $id) |
|
121
|
|
|
{ |
|
122
|
|
|
$this->id = $id; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
|
|
* @return string |
|
127
|
|
|
*/ |
|
128
|
|
|
public function getFirstName() |
|
129
|
|
|
{ |
|
130
|
|
|
return $this->firstName; |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
/** |
|
134
|
|
|
* @param string $firstName |
|
135
|
|
|
*/ |
|
136
|
|
|
public function setFirstName(string $firstName) |
|
137
|
|
|
{ |
|
138
|
|
|
$this->firstName = $firstName; |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
/** |
|
142
|
|
|
* @return string |
|
143
|
|
|
*/ |
|
144
|
|
|
public function getMiddleName() |
|
145
|
|
|
{ |
|
146
|
|
|
return $this->middleName; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
/** |
|
150
|
|
|
* @param string $middleName |
|
151
|
|
|
*/ |
|
152
|
|
|
public function setMiddleName(string $middleName) |
|
153
|
|
|
{ |
|
154
|
|
|
$this->middleName = $middleName; |
|
155
|
|
|
} |
|
156
|
|
|
|
|
157
|
|
|
/** |
|
158
|
|
|
* @return string |
|
159
|
|
|
*/ |
|
160
|
|
|
public function getLastName() |
|
161
|
|
|
{ |
|
162
|
|
|
return $this->lastName; |
|
163
|
|
|
} |
|
164
|
|
|
|
|
165
|
|
|
/** |
|
166
|
|
|
* @param string $lastName |
|
167
|
|
|
*/ |
|
168
|
|
|
public function setLastName(string $lastName) |
|
169
|
|
|
{ |
|
170
|
|
|
$this->lastName = $lastName; |
|
171
|
|
|
} |
|
172
|
|
|
|
|
173
|
|
|
/** |
|
174
|
|
|
* @return string |
|
175
|
|
|
*/ |
|
176
|
|
|
public function getSuffix() |
|
177
|
|
|
{ |
|
178
|
|
|
return $this->suffix; |
|
179
|
|
|
} |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* @param string $suffix |
|
183
|
|
|
*/ |
|
184
|
|
|
public function setSuffix(string $suffix) |
|
185
|
|
|
{ |
|
186
|
|
|
$this->suffix = $suffix; |
|
187
|
|
|
} |
|
188
|
|
|
|
|
189
|
|
|
/** |
|
190
|
|
|
* @return string |
|
191
|
|
|
*/ |
|
192
|
|
|
public function getFullName() |
|
193
|
|
|
{ |
|
194
|
|
|
return $this->fullName; |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
|
|
/** |
|
198
|
|
|
* @param string $fullName |
|
199
|
|
|
*/ |
|
200
|
|
|
public function setFullName($fullName) |
|
201
|
|
|
{ |
|
202
|
|
|
$this->fullName = $fullName; |
|
203
|
|
|
} |
|
204
|
|
|
|
|
205
|
|
|
/** |
|
206
|
|
|
* @return string |
|
207
|
|
|
*/ |
|
208
|
|
|
public function getModified() |
|
209
|
|
|
{ |
|
210
|
|
|
return $this->modified; |
|
211
|
|
|
} |
|
212
|
|
|
|
|
213
|
|
|
/** |
|
214
|
|
|
* @param string $modified |
|
215
|
|
|
*/ |
|
216
|
|
|
public function setModified(string $modified) |
|
217
|
|
|
{ |
|
218
|
|
|
$this->modified = $modified; |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
/** |
|
222
|
|
|
* @return string |
|
223
|
|
|
*/ |
|
224
|
|
|
public function getResourceURI() |
|
225
|
|
|
{ |
|
226
|
|
|
return $this->resourceURI; |
|
227
|
|
|
} |
|
228
|
|
|
|
|
229
|
|
|
/** |
|
230
|
|
|
* @param string $resourceURI |
|
231
|
|
|
*/ |
|
232
|
|
|
public function setResourceURI(string $resourceURI) |
|
233
|
|
|
{ |
|
234
|
|
|
$this->resourceURI = $resourceURI; |
|
235
|
|
|
} |
|
236
|
|
|
|
|
237
|
|
|
/** |
|
238
|
|
|
* @return array |
|
239
|
|
|
*/ |
|
240
|
|
|
public function getUrls() |
|
241
|
|
|
{ |
|
242
|
|
|
return $this->urls; |
|
243
|
|
|
} |
|
244
|
|
|
|
|
245
|
|
|
/** |
|
246
|
|
|
* @param array $urls |
|
247
|
|
|
*/ |
|
248
|
|
|
public function setUrls(array $urls) |
|
249
|
|
|
{ |
|
250
|
|
|
$this->urls = $urls; |
|
251
|
|
|
} |
|
252
|
|
|
|
|
253
|
|
|
/** |
|
254
|
|
|
* @return Image |
|
255
|
|
|
*/ |
|
256
|
|
|
public function getThumbnail() |
|
257
|
|
|
{ |
|
258
|
|
|
return $this->thumbnail; |
|
259
|
|
|
} |
|
260
|
|
|
|
|
261
|
|
|
/** |
|
262
|
|
|
* @param Image $thumbnail |
|
263
|
|
|
*/ |
|
264
|
|
|
public function setThumbnail(Image $thumbnail) |
|
265
|
|
|
{ |
|
266
|
|
|
$this->thumbnail = $thumbnail; |
|
267
|
|
|
} |
|
268
|
|
|
|
|
269
|
|
|
/** |
|
270
|
|
|
* @return SeriesList |
|
271
|
|
|
*/ |
|
272
|
|
|
public function getSeries() |
|
273
|
|
|
{ |
|
274
|
|
|
return $this->series; |
|
275
|
|
|
} |
|
276
|
|
|
|
|
277
|
|
|
/** |
|
278
|
|
|
* @param SeriesList $series |
|
279
|
|
|
*/ |
|
280
|
|
|
public function setSeries(SeriesList $series) |
|
281
|
|
|
{ |
|
282
|
|
|
$this->series = $series; |
|
283
|
|
|
} |
|
284
|
|
|
|
|
285
|
|
|
/** |
|
286
|
|
|
* @return StoryList |
|
287
|
|
|
*/ |
|
288
|
|
|
public function getStories() |
|
289
|
|
|
{ |
|
290
|
|
|
return $this->stories; |
|
291
|
|
|
} |
|
292
|
|
|
|
|
293
|
|
|
/** |
|
294
|
|
|
* @param StoryList $stories |
|
295
|
|
|
*/ |
|
296
|
|
|
public function setStories(StoryList $stories) |
|
297
|
|
|
{ |
|
298
|
|
|
$this->stories = $stories; |
|
299
|
|
|
} |
|
300
|
|
|
|
|
301
|
|
|
/** |
|
302
|
|
|
* @return ComicList |
|
303
|
|
|
*/ |
|
304
|
|
|
public function getComics() |
|
305
|
|
|
{ |
|
306
|
|
|
return $this->comics; |
|
307
|
|
|
} |
|
308
|
|
|
|
|
309
|
|
|
/** |
|
310
|
|
|
* @param ComicList $comics |
|
311
|
|
|
*/ |
|
312
|
|
|
public function setComics(ComicList $comics) |
|
313
|
|
|
{ |
|
314
|
|
|
$this->comics = $comics; |
|
315
|
|
|
} |
|
316
|
|
|
|
|
317
|
|
|
/** |
|
318
|
|
|
* @return EventList |
|
319
|
|
|
*/ |
|
320
|
|
|
public function getEvents() |
|
321
|
|
|
{ |
|
322
|
|
|
return $this->events; |
|
323
|
|
|
} |
|
324
|
|
|
|
|
325
|
|
|
/** |
|
326
|
|
|
* @param EventList $events |
|
327
|
|
|
*/ |
|
328
|
|
|
public function setEvents(EventList $events) |
|
329
|
|
|
{ |
|
330
|
|
|
$this->events = $events; |
|
331
|
|
|
} |
|
332
|
|
|
} |
|
333
|
|
|
|