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