1
|
|
|
<?php declare(strict_types = 1); |
2
|
|
|
|
3
|
|
|
namespace Ikoene\MarvelApiBundle\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Story |
7
|
|
|
* @package Ikoene\MarvelApiBundle\Entity |
8
|
|
|
*/ |
9
|
|
|
class Story |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* The unique ID of the story resource. |
13
|
|
|
* |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* The story title. |
20
|
|
|
* |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
private $title; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* A short description of the story. |
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
|
|
|
* The story type e.g. interior story, cover, text story. |
41
|
|
|
* |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
private $type; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* The date the resource was most recently modified. |
48
|
|
|
* |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $modified; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* The representative image for this story. |
55
|
|
|
* |
56
|
|
|
* @var Image |
57
|
|
|
*/ |
58
|
|
|
private $thumbnail; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* A resource list containing comics in which this story takes place. |
62
|
|
|
* |
63
|
|
|
* @var ComicList |
64
|
|
|
*/ |
65
|
|
|
private $comics; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* A resource list containing series in which this story appears. |
69
|
|
|
* |
70
|
|
|
* @var SeriesList |
71
|
|
|
*/ |
72
|
|
|
private $series; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* A resource list of the events in which this story appears. |
76
|
|
|
* |
77
|
|
|
* @var EventList |
78
|
|
|
*/ |
79
|
|
|
private $events; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* A resource list of characters which appear in this story. |
83
|
|
|
* |
84
|
|
|
* @var CharacterList |
85
|
|
|
*/ |
86
|
|
|
private $characters; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* A resource list of creators who worked on this story. |
90
|
|
|
* |
91
|
|
|
* @var CreatorList |
92
|
|
|
*/ |
93
|
|
|
private $creators; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* A summary representation of the issue in which this story was originally published. |
97
|
|
|
* |
98
|
|
|
* @var ComicSummary |
99
|
|
|
*/ |
100
|
|
|
private $originalissue; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return int |
104
|
|
|
*/ |
105
|
|
|
public function getId() |
106
|
|
|
{ |
107
|
|
|
return $this->id; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @param int $id |
112
|
|
|
*/ |
113
|
|
|
public function setId(int $id) |
114
|
|
|
{ |
115
|
|
|
$this->id = $id; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return string |
120
|
|
|
*/ |
121
|
|
|
public function getTitle() |
122
|
|
|
{ |
123
|
|
|
return $this->title; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param string $title |
128
|
|
|
*/ |
129
|
|
|
public function setTitle(string $title) |
130
|
|
|
{ |
131
|
|
|
$this->title = $title; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return string |
136
|
|
|
*/ |
137
|
|
|
public function getDescription() |
138
|
|
|
{ |
139
|
|
|
return $this->description; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @param string $description |
144
|
|
|
*/ |
145
|
|
|
public function setDescription(string $description) |
146
|
|
|
{ |
147
|
|
|
$this->description = $description; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return string |
152
|
|
|
*/ |
153
|
|
|
public function getResourceURI() |
154
|
|
|
{ |
155
|
|
|
return $this->resourceURI; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @param string $resourceURI |
160
|
|
|
*/ |
161
|
|
|
public function setResourceURI(string $resourceURI) |
162
|
|
|
{ |
163
|
|
|
$this->resourceURI = $resourceURI; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @return string |
168
|
|
|
*/ |
169
|
|
|
public function getType() |
170
|
|
|
{ |
171
|
|
|
return $this->type; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @param string $type |
176
|
|
|
*/ |
177
|
|
|
public function setType(string $type) |
178
|
|
|
{ |
179
|
|
|
$this->type = $type; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @return string |
184
|
|
|
*/ |
185
|
|
|
public function getModified() |
186
|
|
|
{ |
187
|
|
|
return $this->modified; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @param string $modified |
192
|
|
|
*/ |
193
|
|
|
public function setModified(string $modified) |
194
|
|
|
{ |
195
|
|
|
$this->modified = $modified; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return Image |
200
|
|
|
*/ |
201
|
|
|
public function getThumbnail() |
202
|
|
|
{ |
203
|
|
|
return $this->thumbnail; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @param Image $thumbnail |
208
|
|
|
*/ |
209
|
|
|
public function setThumbnail(Image $thumbnail) |
210
|
|
|
{ |
211
|
|
|
$this->thumbnail = $thumbnail; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @return ComicList |
216
|
|
|
*/ |
217
|
|
|
public function getComics() |
218
|
|
|
{ |
219
|
|
|
return $this->comics; |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* @param ComicList $comics |
224
|
|
|
*/ |
225
|
|
|
public function setComics(ComicList $comics) |
226
|
|
|
{ |
227
|
|
|
$this->comics = $comics; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @return SeriesList |
232
|
|
|
*/ |
233
|
|
|
public function getSeries() |
234
|
|
|
{ |
235
|
|
|
return $this->series; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @param SeriesList $series |
240
|
|
|
*/ |
241
|
|
|
public function setSeries(SeriesList $series) |
242
|
|
|
{ |
243
|
|
|
$this->series = $series; |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
/** |
247
|
|
|
* @return EventList |
248
|
|
|
*/ |
249
|
|
|
public function getEvents() |
250
|
|
|
{ |
251
|
|
|
return $this->events; |
252
|
|
|
} |
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @param EventList $events |
256
|
|
|
*/ |
257
|
|
|
public function setEvents(EventList $events) |
258
|
|
|
{ |
259
|
|
|
$this->events = $events; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @return CharacterList |
264
|
|
|
*/ |
265
|
|
|
public function getCharacters() |
266
|
|
|
{ |
267
|
|
|
return $this->characters; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* @param CharacterList $characters |
272
|
|
|
*/ |
273
|
|
|
public function setCharacters(CharacterList $characters) |
274
|
|
|
{ |
275
|
|
|
$this->characters = $characters; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
/** |
279
|
|
|
* @return CreatorList |
280
|
|
|
*/ |
281
|
|
|
public function getCreators() |
282
|
|
|
{ |
283
|
|
|
return $this->creators; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* @param CreatorList $creators |
288
|
|
|
*/ |
289
|
|
|
public function setCreators(CreatorList $creators) |
290
|
|
|
{ |
291
|
|
|
$this->creators = $creators; |
292
|
|
|
} |
293
|
|
|
|
294
|
|
|
/** |
295
|
|
|
* @return ComicSummary |
296
|
|
|
*/ |
297
|
|
|
public function getOriginalissue() |
298
|
|
|
{ |
299
|
|
|
return $this->originalissue; |
300
|
|
|
} |
301
|
|
|
|
302
|
|
|
/** |
303
|
|
|
* @param ComicSummary $originalissue |
304
|
|
|
*/ |
305
|
|
|
public function setOriginalissue(ComicSummary $originalissue) |
306
|
|
|
{ |
307
|
|
|
$this->originalissue = $originalissue; |
308
|
|
|
} |
309
|
|
|
} |
310
|
|
|
|