ListCasesRequest   A
last analyzed

Complexity

Total Complexity 28

Size/Duplication

Total Lines 358
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 28
lcom 0
cbo 0
dl 0
loc 358
rs 10
c 0
b 0
f 0

28 Methods

Rating   Name   Duplication   Size   Complexity  
A getPage() 0 4 1
A setPage() 0 6 1
A getLimit() 0 4 1
A setLimit() 0 6 1
A getUserId() 0 4 1
A setUserId() 0 6 1
A getUserEmail() 0 4 1
A setUserEmail() 0 6 1
A getUserPhone() 0 4 1
A setUserPhone() 0 6 1
A getSubject() 0 4 1
A setSubject() 0 6 1
A getStaffId() 0 4 1
A setStaffId() 0 6 1
A getGroupId() 0 4 1
A setGroupId() 0 6 1
A getChannel() 0 4 1
A setChannel() 0 6 1
A getPriority() 0 4 1
A setPriority() 0 6 1
A getStatus() 0 4 1
A setStatus() 0 6 1
A getCustomFields() 0 4 1
A setCustomFields() 0 6 1
A getLabels() 0 4 1
A setLabels() 0 6 1
A getSort() 0 4 1
A setSort() 0 6 1
1
<?php
2
namespace OmnideskBundle\Request\Cases;
3
4
use OmnideskBundle\Request\RequestInterface;
5
6
/**
7
 * Class ListCasesRequest
8
 * @package OmnideskBundle\Request\Cases
9
 */
10
class ListCasesRequest implements RequestInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    const SORT_UPDATED_AT_DESC = 'updated_at_desc';
16
17
    /**
18
     * @var string
19
     */
20
    const SORT_UPDATED_AT_ASC = 'updated_at_asc';
21
22
    /**
23
     * @var string
24
     */
25
    const SORT_CREATED_AT_DESC = 'created_at_desc';
26
27
    /**
28
     * @var string
29
     */
30
    const SORT_CREATED_AT_ASC = 'created_at_asc';
31
32
    /**
33
     * @var int
34
     */
35
    private $page;
36
37
    /**
38
     * @var int
39
     */
40
    private $limit;
41
42
    /**
43
     * @var int
44
     */
45
    private $userId;
46
47
    /**
48
     * @var string
49
     */
50
    private $userEmail;
51
52
    /**
53
     * @var string
54
     */
55
    private $userPhone;
56
57
    /**
58
     * @var string
59
     */
60
    private $subject;
61
62
    /**
63
     * @var int
64
     */
65
    private $staffId;
66
67
    /**
68
     * @var int
69
     */
70
    private $groupId;
71
72
    /**
73
     * @var string
74
     */
75
    private $channel;
76
77
    /**
78
     * @var string
79
     */
80
    private $priority;
81
82
    /**
83
     * @var string
84
     */
85
    private $status;
86
87
    /**
88
     * @var array
89
     */
90
    private $customFields;
91
92
    /**
93
     * @var array
94
     */
95
    private $labels;
96
97
    /**
98
     * @var string
99
     */
100
    private $sort;
101
102
    /**
103
     * @return int
104
     */
105
    public function getPage()
106
    {
107
        return $this->page;
108
    }
109
110
    /**
111
     * @param int $page
112
     * @return $this
113
     */
114
    public function setPage($page)
115
    {
116
        $this->page = $page;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @return int
123
     */
124
    public function getLimit()
125
    {
126
        return $this->limit;
127
    }
128
129
    /**
130
     * @param int $limit
131
     * @return $this
132
     */
133
    public function setLimit($limit)
134
    {
135
        $this->limit = $limit;
136
137
        return $this;
138
    }
139
140
    /**
141
     * @return int
142
     */
143
    public function getUserId()
144
    {
145
        return $this->userId;
146
    }
147
148
    /**
149
     * @param int $userId
150
     * @return $this
151
     */
152
    public function setUserId($userId)
153
    {
154
        $this->userId = $userId;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getUserEmail()
163
    {
164
        return $this->userEmail;
165
    }
166
167
    /**
168
     * @param string $userEmail
169
     * @return $this
170
     */
171
    public function setUserEmail($userEmail)
172
    {
173
        $this->userEmail = $userEmail;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @return string
180
     */
181
    public function getUserPhone()
182
    {
183
        return $this->userPhone;
184
    }
185
186
    /**
187
     * @param string $userPhone
188
     * @return $this
189
     */
190
    public function setUserPhone($userPhone)
191
    {
192
        $this->userPhone = $userPhone;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getSubject()
201
    {
202
        return $this->subject;
203
    }
204
205
    /**
206
     * @param string $subject
207
     * @return $this
208
     */
209
    public function setSubject($subject)
210
    {
211
        $this->subject = $subject;
212
213
        return $this;
214
    }
215
216
    /**
217
     * @return int
218
     */
219
    public function getStaffId()
220
    {
221
        return $this->staffId;
222
    }
223
224
    /**
225
     * @param int $staffId
226
     * @return $this
227
     */
228
    public function setStaffId($staffId)
229
    {
230
        $this->staffId = $staffId;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @return int
237
     */
238
    public function getGroupId()
239
    {
240
        return $this->groupId;
241
    }
242
243
    /**
244
     * @param int $groupId
245
     * @return $this
246
     */
247
    public function setGroupId($groupId)
248
    {
249
        $this->groupId = $groupId;
250
251
        return $this;
252
    }
253
254
    /**
255
     * @return string
256
     */
257
    public function getChannel()
258
    {
259
        return $this->channel;
260
    }
261
262
    /**
263
     * @param string $channel
264
     * @return $this
265
     */
266
    public function setChannel($channel)
267
    {
268
        $this->channel = $channel;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @return string
275
     */
276
    public function getPriority()
277
    {
278
        return $this->priority;
279
    }
280
281
    /**
282
     * @param string $priority
283
     * @return $this
284
     */
285
    public function setPriority($priority)
286
    {
287
        $this->priority = $priority;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @return string
294
     */
295
    public function getStatus()
296
    {
297
        return $this->status;
298
    }
299
300
    /**
301
     * @param string $status
302
     * @return $this
303
     */
304
    public function setStatus($status)
305
    {
306
        $this->status = $status;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @return array
313
     */
314
    public function getCustomFields()
315
    {
316
        return $this->customFields;
317
    }
318
319
    /**
320
     * @param array $customFields
321
     * @return $this
322
     */
323
    public function setCustomFields($customFields)
324
    {
325
        $this->customFields = $customFields;
326
327
        return $this;
328
    }
329
330
    /**
331
     * @return array
332
     */
333
    public function getLabels()
334
    {
335
        return $this->labels;
336
    }
337
338
    /**
339
     * @param array $labels
340
     * @return $this
341
     */
342
    public function setLabels($labels)
343
    {
344
        $this->labels = $labels;
345
346
        return $this;
347
    }
348
349
    /**
350
     * @return string
351
     */
352
    public function getSort()
353
    {
354
        return $this->sort;
355
    }
356
357
    /**
358
     * @param string $sort
359
     * @return $this
360
     */
361
    public function setSort($sort)
362
    {
363
        $this->sort = $sort;
364
365
        return $this;
366
    }
367
}
368