EventFilter   A
last analyzed

Complexity

Total Complexity 22

Size/Duplication

Total Lines 262
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 22
lcom 0
cbo 0
dl 0
loc 262
rs 10
c 0
b 0
f 0

22 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getNameStartsWith() 0 4 1
A setNameStartsWith() 0 4 1
A getModifiedSince() 0 4 1
A setModifiedSince() 0 4 1
A getCreators() 0 4 1
A setCreators() 0 4 1
A getCharacters() 0 4 1
A setCharacters() 0 4 1
A getSeries() 0 4 1
A setSeries() 0 4 1
A getComics() 0 4 1
A setComics() 0 4 1
A getStories() 0 4 1
A setStories() 0 4 1
A getOrderBy() 0 4 1
A setOrderBy() 0 4 1
A getLimit() 0 4 1
A setLimit() 0 4 1
A getOffset() 0 4 1
A setOffset() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace ikoene\Marvel\Entity;
4
5
/**
6
 * Class EventFilter
7
 * @package ikoene\Marvel\Entity
8
 */
9
class EventFilter
10
{
11
    /**
12
     * Return only events which match the specified name.
13
     *
14
     * @var string
15
     */
16
    public $name;
17
18
    /**
19
     * Return events with names that begin with the specified string (e.g. Sp).
20
     *
21
     * @var string
22
     */
23
    public $nameStartsWith;
24
25
    /**
26
     * Return only events which have been modified since the specified date.
27
     *
28
     * @var string
29
     */
30
    public $modifiedSince;
31
32
    /**
33
     * Return only events which feature work by the specified creators
34
     * (accepts a comma-separated list of ids).
35
     *
36
     * @var string
37
     */
38
    public $creators;
39
40
    /**
41
     * Return only events which feature the specified characters
42
     * (accepts a comma-separated list of ids).
43
     *
44
     * @var string
45
     */
46
    public $characters;
47
48
    /**
49
     * Return only events which are part of the specified series
50
     * (accepts a comma-separated list of ids).
51
     *
52
     * @var string
53
     */
54
    public $series;
55
56
    /**
57
     * Return only events which take place in the specified comics
58
     * (accepts a comma-separated list of ids).
59
     *
60
     * @var string
61
     */
62
    public $comics;
63
64
    /**
65
     * Return only events which take place in the specified stories
66
     * (accepts a comma-separated list of ids).
67
     *
68
     * @var string
69
     */
70
    public $stories;
71
72
    /**
73
     * Order the result set by a field or fields.
74
     * Add a "-" to the value sort in descending order.
75
     * Multiple values are given priority in the order in which they are passed.
76
     *
77
     * @var string
78
     */
79
    public $orderBy;
80
81
    /**
82
     * Limit the result set to the specified number of resources.
83
     *
84
     * @var int
85
     */
86
    public $limit;
87
88
    /**
89
     * Skip the specified number of resources in the result set.
90
     *
91
     * @var int
92
     */
93
    public $offset;
94
95
    /**
96
     * @return string
97
     */
98
    public function getName()
99
    {
100
        return $this->name;
101
    }
102
103
    /**
104
     * @param string $name
105
     */
106
    public function setName(string $name)
107
    {
108
        $this->name = $name;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getNameStartsWith()
115
    {
116
        return $this->nameStartsWith;
117
    }
118
119
    /**
120
     * @param string $nameStartsWith
121
     */
122
    public function setNameStartsWith(string $nameStartsWith)
123
    {
124
        $this->nameStartsWith = $nameStartsWith;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getModifiedSince()
131
    {
132
        return $this->modifiedSince;
133
    }
134
135
    /**
136
     * @param string $modifiedSince
137
     */
138
    public function setModifiedSince(string $modifiedSince)
139
    {
140
        $this->modifiedSince = $modifiedSince;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getCreators()
147
    {
148
        return $this->creators;
149
    }
150
151
    /**
152
     * @param string $creators
153
     */
154
    public function setCreators(string $creators)
155
    {
156
        $this->creators = $creators;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getCharacters()
163
    {
164
        return $this->characters;
165
    }
166
167
    /**
168
     * @param string $characters
169
     */
170
    public function setCharacters(string $characters)
171
    {
172
        $this->characters = $characters;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getSeries()
179
    {
180
        return $this->series;
181
    }
182
183
    /**
184
     * @param string $series
185
     */
186
    public function setSeries(string $series)
187
    {
188
        $this->series = $series;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getComics()
195
    {
196
        return $this->comics;
197
    }
198
199
    /**
200
     * @param string $comics
201
     */
202
    public function setComics(string $comics)
203
    {
204
        $this->comics = $comics;
205
    }
206
207
    /**
208
     * @return string
209
     */
210
    public function getStories()
211
    {
212
        return $this->stories;
213
    }
214
215
    /**
216
     * @param string $stories
217
     */
218
    public function setStories(string $stories)
219
    {
220
        $this->stories = $stories;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getOrderBy()
227
    {
228
        return $this->orderBy;
229
    }
230
231
    /**
232
     * @param string $orderBy
233
     */
234
    public function setOrderBy(string $orderBy)
235
    {
236
        $this->orderBy = $orderBy;
237
    }
238
239
    /**
240
     * @return int
241
     */
242
    public function getLimit()
243
    {
244
        return $this->limit;
245
    }
246
247
    /**
248
     * @param int $limit
249
     */
250
    public function setLimit(int $limit)
251
    {
252
        $this->limit = $limit;
253
    }
254
255
    /**
256
     * @return int
257
     */
258
    public function getOffset()
259
    {
260
        return $this->offset;
261
    }
262
263
    /**
264
     * @param int $offset
265
     */
266
    public function setOffset(int $offset)
267
    {
268
        $this->offset = $offset;
269
    }
270
}
271