1
|
|
|
<?php declare(strict_types = 1); |
2
|
|
|
|
3
|
|
|
namespace Ikoene\MarvelApiBundle\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Character |
7
|
|
|
* @package Ikoene\MarvelApiBundle\Entity |
8
|
|
|
*/ |
9
|
|
|
class Character |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* The unique ID of the character resource. |
13
|
|
|
* |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* The name of the character. |
20
|
|
|
* |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
private $name; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* A short bio or description of the character. |
27
|
|
|
* |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
private $description; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* The date the resource was most recently modified. |
34
|
|
|
* |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
private $modified; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* The canonical URL identifier for this resource. |
41
|
|
|
* |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
private $resourceURI; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* A set of public web site URLs for the resource. |
48
|
|
|
* |
49
|
|
|
* @var array |
50
|
|
|
*/ |
51
|
|
|
private $urls; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* The representative image for this character. |
55
|
|
|
* |
56
|
|
|
* @var Image |
57
|
|
|
*/ |
58
|
|
|
private $thumbnail; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* A resource list containing comics which feature this character. |
62
|
|
|
* |
63
|
|
|
* @var ComicList |
64
|
|
|
*/ |
65
|
|
|
private $comics; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* A resource list of stories in which this character appears. |
69
|
|
|
* |
70
|
|
|
* @var StoryList |
71
|
|
|
*/ |
72
|
|
|
private $stories; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* A resource list of events in which this character appears. |
76
|
|
|
* |
77
|
|
|
* @var EventList |
78
|
|
|
*/ |
79
|
|
|
private $events; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* A resource list of series in which this character appears. |
83
|
|
|
* |
84
|
|
|
* @var SeriesList |
85
|
|
|
*/ |
86
|
|
|
private $series; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @return int |
90
|
|
|
*/ |
91
|
|
|
public function getId() |
92
|
|
|
{ |
93
|
|
|
return $this->id; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @param int $id |
98
|
|
|
*/ |
99
|
|
|
public function setId(int $id) |
100
|
|
|
{ |
101
|
|
|
$this->id = $id; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return string |
106
|
|
|
*/ |
107
|
|
|
public function getName() |
108
|
|
|
{ |
109
|
|
|
return $this->name; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param string $name |
114
|
|
|
*/ |
115
|
|
|
public function setName(string $name) |
116
|
|
|
{ |
117
|
|
|
$this->name = $name; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return string |
122
|
|
|
*/ |
123
|
|
|
public function getDescription() |
124
|
|
|
{ |
125
|
|
|
return $this->description; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param string $description |
130
|
|
|
*/ |
131
|
|
|
public function setDescription(string $description) |
132
|
|
|
{ |
133
|
|
|
$this->description = $description; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return string |
138
|
|
|
*/ |
139
|
|
|
public function getModified() |
140
|
|
|
{ |
141
|
|
|
return $this->modified; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @param string $modified |
146
|
|
|
*/ |
147
|
|
|
public function setModified(string $modified) |
148
|
|
|
{ |
149
|
|
|
$this->modified = $modified; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @return string |
154
|
|
|
*/ |
155
|
|
|
public function getResourceURI() |
156
|
|
|
{ |
157
|
|
|
return $this->resourceURI; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @param string $resourceURI |
162
|
|
|
*/ |
163
|
|
|
public function setResourceURI(string $resourceURI) |
164
|
|
|
{ |
165
|
|
|
$this->resourceURI = $resourceURI; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @return array |
170
|
|
|
*/ |
171
|
|
|
public function getUrls() |
172
|
|
|
{ |
173
|
|
|
return $this->urls; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @param array $urls |
178
|
|
|
*/ |
179
|
|
|
public function setUrls(array $urls) |
180
|
|
|
{ |
181
|
|
|
$this->urls = $urls; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return Image |
186
|
|
|
*/ |
187
|
|
|
public function getThumbnail() |
188
|
|
|
{ |
189
|
|
|
return $this->thumbnail; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @param Image $thumbnail |
194
|
|
|
*/ |
195
|
|
|
public function setThumbnail(Image $thumbnail) |
196
|
|
|
{ |
197
|
|
|
$this->thumbnail = $thumbnail; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @return ComicList |
202
|
|
|
*/ |
203
|
|
|
public function getComics() |
204
|
|
|
{ |
205
|
|
|
return $this->comics; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @param ComicList $comics |
210
|
|
|
*/ |
211
|
|
|
public function setComics(ComicList $comics) |
212
|
|
|
{ |
213
|
|
|
$this->comics = $comics; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @return StoryList |
218
|
|
|
*/ |
219
|
|
|
public function getStories() |
220
|
|
|
{ |
221
|
|
|
return $this->stories; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @param StoryList $stories |
226
|
|
|
*/ |
227
|
|
|
public function setStories(StoryList $stories) |
228
|
|
|
{ |
229
|
|
|
$this->stories = $stories; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @return EventList |
234
|
|
|
*/ |
235
|
|
|
public function getEvents() |
236
|
|
|
{ |
237
|
|
|
return $this->events; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @param EventList $events |
242
|
|
|
*/ |
243
|
|
|
public function setEvents(EventList $events) |
244
|
|
|
{ |
245
|
|
|
$this->events = $events; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @return SeriesList |
250
|
|
|
*/ |
251
|
|
|
public function getSeries() |
252
|
|
|
{ |
253
|
|
|
return $this->series; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* @param SeriesList $series |
258
|
|
|
*/ |
259
|
|
|
public function setSeries(SeriesList $series) |
260
|
|
|
{ |
261
|
|
|
$this->series = $series; |
262
|
|
|
} |
263
|
|
|
} |
264
|
|
|
|