CreatorFilter::getMiddleNameStartsWith()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
3
namespace ikoene\Marvel\Entity;
4
5
/**
6
 * Class CreatorFilter
7
 * @package ikoene\Marvel\Entity
8
 */
9
class CreatorFilter
10
{
11
    /**
12
     * Filter by creator first name (e.g. Brian).
13
     *
14
     * @var string
15
     */
16
    public $firstName;
17
18
    /**
19
     * Filter by creator middle name (e.g. Michael).
20
     *
21
     * @var string
22
     */
23
    public $middleName;
24
25
    /**
26
     * Filter by creator last name (e.g. Bendis).
27
     *
28
     * @var string
29
     */
30
    public $lastName;
31
32
    /**
33
     * Filter by suffix or honorific (e.g. Jr., Sr.).
34
     *
35
     * @var string
36
     */
37
    public $suffix;
38
39
    /**
40
     * Filter by creator names that match critera (e.g. B, St L).
41
     *
42
     * @var string
43
     */
44
    public $nameStartsWith;
45
46
    /**
47
     * Filter by creator first names that match critera (e.g. B, St L).
48
     *
49
     * @var string
50
     */
51
    public $firstNameStartsWith;
52
53
    /**
54
     * Filter by creator middle names that match critera (e.g. Mi).
55
     *
56
     * @var string
57
     */
58
    public $middleNameStartsWith;
59
60
    /**
61
     * Filter by creator last names that match critera (e.g. Ben).
62
     *
63
     * @var string
64
     */
65
    public $lastNameStartsWith;
66
67
    /**
68
     * Return only creators which have been modified since the specified date.
69
     *
70
     * @var string
71
     */
72
    public $modifiedSince;
73
74
    /**
75
     * Return only creators who worked on in the specified comics
76
     * (accepts a comma-separated list of ids).
77
     *
78
     * @var string
79
     */
80
    public $comics;
81
82
    /**
83
     * Return only creators who worked on the specified series
84
     * (accepts a comma-separated list of ids).
85
     *
86
     * @var string
87
     */
88
    public $series;
89
90
    /**
91
     * Return only creators who worked on comics that took place in the specified events
92
     * (accepts a comma-separated list of ids).
93
     *
94
     * @var string
95
     */
96
    public $events;
97
98
    /**
99
     * Return only creators who worked on the specified stories
100
     * (accepts a comma-separated list of ids).
101
     *
102
     * @var string
103
     */
104
    public $stories;
105
106
    /**
107
     * Order the result set by a field or fields.
108
     * Add a "-" to the value sort in descending order.
109
     * Multiple values are given priority in the order in which they are passed.
110
     *
111
     * @var string
112
     */
113
    public $orderBy;
114
115
    /**
116
     * Limit the result set to the specified number of resources.
117
     *
118
     * @var int
119
     */
120
    public $limit;
121
122
    /**
123
     * Skip the specified number of resources in the result set.
124
     *
125
     * @var int
126
     */
127
    public $offset;
128
129
    /**
130
     * @return string
131
     */
132
    public function getFirstName()
133
    {
134
        return $this->firstName;
135
    }
136
137
    /**
138
     * @param string $firstName
139
     */
140
    public function setFirstName($firstName)
141
    {
142
        $this->firstName = $firstName;
143
    }
144
145
    /**
146
     * @return string
147
     */
148
    public function getMiddleName()
149
    {
150
        return $this->middleName;
151
    }
152
153
    /**
154
     * @param string $middleName
155
     */
156
    public function setMiddleName($middleName)
157
    {
158
        $this->middleName = $middleName;
159
    }
160
161
    /**
162
     * @return string
163
     */
164
    public function getLastName()
165
    {
166
        return $this->lastName;
167
    }
168
169
    /**
170
     * @param string $lastName
171
     */
172
    public function setLastName($lastName)
173
    {
174
        $this->lastName = $lastName;
175
    }
176
177
    /**
178
     * @return string
179
     */
180
    public function getSuffix()
181
    {
182
        return $this->suffix;
183
    }
184
185
    /**
186
     * @param string $suffix
187
     */
188
    public function setSuffix(string $suffix)
189
    {
190
        $this->suffix = $suffix;
191
    }
192
193
    /**
194
     * @return string
195
     */
196
    public function getNameStartsWith()
197
    {
198
        return $this->nameStartsWith;
199
    }
200
201
    /**
202
     * @param string $nameStartsWith
203
     */
204
    public function setNameStartsWith(string $nameStartsWith)
205
    {
206
        $this->nameStartsWith = $nameStartsWith;
207
    }
208
209
    /**
210
     * @return string
211
     */
212
    public function getFirstNameStartsWith()
213
    {
214
        return $this->firstNameStartsWith;
215
    }
216
217
    /**
218
     * @param string $firstNameStartsWith
219
     */
220
    public function setFirstNameStartsWith(string $firstNameStartsWith)
221
    {
222
        $this->firstNameStartsWith = $firstNameStartsWith;
223
    }
224
225
    /**
226
     * @return string
227
     */
228
    public function getMiddleNameStartsWith()
229
    {
230
        return $this->middleNameStartsWith;
231
    }
232
233
    /**
234
     * @param string $middleNameStartsWith
235
     */
236
    public function setMiddleNameStartsWith(string $middleNameStartsWith)
237
    {
238
        $this->middleNameStartsWith = $middleNameStartsWith;
239
    }
240
241
    /**
242
     * @return string
243
     */
244
    public function getLastNameStartsWith()
245
    {
246
        return $this->lastNameStartsWith;
247
    }
248
249
    /**
250
     * @param string $lastNameStartsWith
251
     */
252
    public function setLastNameStartsWith(string $lastNameStartsWith)
253
    {
254
        $this->lastNameStartsWith = $lastNameStartsWith;
255
    }
256
257
    /**
258
     * @return string
259
     */
260
    public function getModifiedSince()
261
    {
262
        return $this->modifiedSince;
263
    }
264
265
    /**
266
     * @param string $modifiedSince
267
     */
268
    public function setModifiedSince(string $modifiedSince)
269
    {
270
        $this->modifiedSince = $modifiedSince;
271
    }
272
273
    /**
274
     * @return int
275
     */
276
    public function getComics()
277
    {
278
        return $this->comics;
279
    }
280
281
    /**
282
     * @param string $comics
283
     */
284
    public function setComics(string $comics)
285
    {
286
        $this->comics = $comics;
287
    }
288
289
    /**
290
     * @return string
291
     */
292
    public function getSeries()
293
    {
294
        return $this->series;
295
    }
296
297
    /**
298
     * @param string $series
299
     */
300
    public function setSeries(string $series)
301
    {
302
        $this->series = $series;
303
    }
304
305
    /**
306
     * @return string
307
     */
308
    public function getEvents()
309
    {
310
        return $this->events;
311
    }
312
313
    /**
314
     * @param string $events
315
     */
316
    public function setEvents(string $events)
317
    {
318
        $this->events = $events;
319
    }
320
321
    /**
322
     * @return string
323
     */
324
    public function getStories()
325
    {
326
        return $this->stories;
327
    }
328
329
    /**
330
     * @param string $stories
331
     */
332
    public function setStories(string $stories)
333
    {
334
        $this->stories = $stories;
335
    }
336
337
    /**
338
     * @return string
339
     */
340
    public function getOrderBy()
341
    {
342
        return $this->orderBy;
343
    }
344
345
    /**
346
     * @param string $orderBy
347
     */
348
    public function setOrderBy(string $orderBy)
349
    {
350
        $this->orderBy = $orderBy;
351
    }
352
353
    /**
354
     * @return int
355
     */
356
    public function getLimit()
357
    {
358
        return $this->limit;
359
    }
360
361
    /**
362
     * @param int $limit
363
     */
364
    public function setLimit(int $limit)
365
    {
366
        $this->limit = $limit;
367
    }
368
369
    /**
370
     * @return int
371
     */
372
    public function getOffset()
373
    {
374
        return $this->offset;
375
    }
376
377
    /**
378
     * @param int $offset
379
     */
380
    public function setOffset(int $offset)
381
    {
382
        $this->offset = $offset;
383
    }
384
}
385