Completed
Push — master ( 8db338...3a13f3 )
by Vragov
06:07
created

Cases::setStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace OmnideskBundle\Model;
3
4
/**
5
 * Class Cases
6
 * @package OmnideskBundle\Model
7
 */
8
class Cases
9
{
10
    /**
11
     * @var string
12
     */
13
    const CHANNEL_EMAIL = 'email';
14
15
    /**
16
     * @var string
17
     */
18
    const CHANNEL_CHAT = 'chat';
19
20
    /**
21
     * @var string
22
     */
23
    const CHANNEL_TWITTER = 'twitter';
24
25
    /**
26
     * @var string
27
     */
28
    const CHANNEL_FACEBOOK = 'facebook';
29
30
    /**
31
     * @var string
32
     */
33
    const CHANNEL_IDEA = 'idea';
34
35
    /**
36
     * @var string
37
     */
38
    const PRIORITY_LOW = 'low';
39
40
    /**
41
     * @var string
42
     */
43
    const PRIORITY_NORMAL = 'normal';
44
45
    /**
46
     * @var string
47
     */
48
    const PRIORITY_HIGH = 'high';
49
50
    /**
51
     * @var string
52
     */
53
    const PRIORITY_CRITICAL = 'critical';
54
55
    /**
56
     * @var string
57
     */
58
    const STATUS_OPEN = 'open';
59
60
    /**
61
     * @var string
62
     */
63
    const STATUS_WAITING = 'waiting';
64
65
    /**
66
     * @var string
67
     */
68
    const STATUS_CLOSED = 'closed';
69
70
    /**
71
     * @var int
72
     */
73
    private $id;
74
75
    /**
76
     * @var string
77
     */
78
    private $number;
79
80
    /**
81
     * @var string
82
     */
83
    private $subject;
84
85
    /**
86
     * @var int
87
     */
88
    private $userId;
89
90
    /**
91
     * @var int
92
     */
93
    private $staffId;
94
95
    /**
96
     * @var int
97
     */
98
    private $groupId;
99
100
    /**
101
     * @var string
102
     */
103
    private $status;
104
105
    /**
106
     * @var string
107
     */
108
    private $priority;
109
110
    /**
111
     * @var string
112
     */
113
    private $chanel;
114
115
    /**
116
     * @var string
117
     */
118
    private $recipient;
119
120
    /**
121
     * @var bool
122
     */
123
    private $deleted;
124
125
    /**
126
     * @var bool
127
     */
128
    private $spam;
129
130
    /**
131
     * @var \DateTime
132
     */
133
    private $createdAt;
134
135
    /**
136
     * @var \DateTime
137
     */
138
    private $updatedAt;
139
140
    /**
141
     * @var string
142
     */
143
    private $closingSpeed;
144
145
    /**
146
     * @var int
147
     */
148
    private $languageId;
149
150
    /**
151
     * @var array
152
     */
153
    private $labels;
154
155
    /**
156
     * @return int
157
     */
158
    public function getId()
159
    {
160
        return $this->id;
161
    }
162
163
    /**
164
     * @param int $id
165
     * @return $this
166
     */
167
    public function setId($id)
168
    {
169
        $this->id = $id;
170
171
        return $this;
172
    }
173
174
    /**
175
     * @return string
176
     */
177
    public function getNumber()
178
    {
179
        return $this->number;
180
    }
181
182
    /**
183
     * @param string $number
184
     * @return $this
185
     */
186
    public function setNumber($number)
187
    {
188
        $this->number = $number;
189
190
        return $this;
191
    }
192
193
    /**
194
     * @return string
195
     */
196
    public function getSubject()
197
    {
198
        return $this->subject;
199
    }
200
201
    /**
202
     * @param string $subject
203
     * @return $this
204
     */
205
    public function setSubject($subject)
206
    {
207
        $this->subject = $subject;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @return int
214
     */
215
    public function getUserId()
216
    {
217
        return $this->userId;
218
    }
219
220
    /**
221
     * @param int $userId
222
     * @return $this
223
     */
224
    public function setUserId($userId)
225
    {
226
        $this->userId = $userId;
227
228
        return $this;
229
    }
230
231
    /**
232
     * @return int
233
     */
234
    public function getStaffId()
235
    {
236
        return $this->staffId;
237
    }
238
239
    /**
240
     * @param int $staffId
241
     * @return $this
242
     */
243
    public function setStaffId($staffId)
244
    {
245
        $this->staffId = $staffId;
246
247
        return $this;
248
    }
249
250
    /**
251
     * @return int
252
     */
253
    public function getGroupId()
254
    {
255
        return $this->groupId;
256
    }
257
258
    /**
259
     * @param int $groupId
260
     * @return $this
261
     */
262
    public function setGroupId($groupId)
263
    {
264
        $this->groupId = $groupId;
265
266
        return $this;
267
    }
268
269
    /**
270
     * @return string
271
     */
272
    public function getStatus()
273
    {
274
        return $this->status;
275
    }
276
277
    /**
278
     * @param string $status
279
     * @return $this
280
     */
281
    public function setStatus($status)
282
    {
283
        $this->status = $status;
284
285
        return $this;
286
    }
287
288
    /**
289
     * @return string
290
     */
291
    public function getPriority()
292
    {
293
        return $this->priority;
294
    }
295
296
    /**
297
     * @param string $priority
298
     * @return $this
299
     */
300
    public function setPriority($priority)
301
    {
302
        $this->priority = $priority;
303
304
        return $this;
305
    }
306
307
    /**
308
     * @return string
309
     */
310
    public function getChanel()
311
    {
312
        return $this->chanel;
313
    }
314
315
    /**
316
     * @param string $chanel
317
     * @return $this
318
     */
319
    public function setChanel($chanel)
320
    {
321
        $this->chanel = $chanel;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @return string
328
     */
329
    public function getRecipient()
330
    {
331
        return $this->recipient;
332
    }
333
334
    /**
335
     * @param string $recipient
336
     * @return $this
337
     */
338
    public function setRecipient($recipient)
339
    {
340
        $this->recipient = $recipient;
341
342
        return $this;
343
    }
344
345
    /**
346
     * @return bool
347
     */
348
    public function isDeleted()
349
    {
350
        return $this->deleted;
351
    }
352
353
    /**
354
     * @param bool $deleted
355
     * @return $this
356
     */
357
    public function setDeleted($deleted)
358
    {
359
        $this->deleted = $deleted;
360
361
        return $this;
362
    }
363
364
    /**
365
     * @return bool
366
     */
367
    public function isSpam()
368
    {
369
        return $this->spam;
370
    }
371
372
    /**
373
     * @param bool $spam
374
     * @return $this
375
     */
376
    public function setSpam($spam)
377
    {
378
        $this->spam = $spam;
379
380
        return $this;
381
    }
382
383
    /**
384
     * @return \DateTime
385
     */
386
    public function getCreatedAt()
387
    {
388
        return $this->createdAt;
389
    }
390
391
    /**
392
     * @param \DateTime $createdAt
393
     * @return $this
394
     */
395
    public function setCreatedAt(\DateTime $createdAt)
396
    {
397
        $this->createdAt = $createdAt;
398
399
        return $this;
400
    }
401
402
    /**
403
     * @return \DateTime
404
     */
405
    public function getUpdatedAt()
406
    {
407
        return $this->updatedAt;
408
    }
409
410
    /**
411
     * @param \DateTime $updatedAt
412
     * @return $this
413
     */
414
    public function setUpdatedAt(\DateTime $updatedAt)
415
    {
416
        $this->updatedAt = $updatedAt;
417
418
        return $this;
419
    }
420
421
    /**
422
     * @return string
423
     */
424
    public function getClosingSpeed()
425
    {
426
        return $this->closingSpeed;
427
    }
428
429
    /**
430
     * @param string $closingSpeed
431
     * @return $this
432
     */
433
    public function setClosingSpeed($closingSpeed)
434
    {
435
        $this->closingSpeed = $closingSpeed;
436
437
        return $this;
438
    }
439
440
    /**
441
     * @return int
442
     */
443
    public function getLanguageId()
444
    {
445
        return $this->languageId;
446
    }
447
448
    /**
449
     * @param int $languageId
450
     * @return $this
451
     */
452
    public function setLanguageId($languageId)
453
    {
454
        $this->languageId = $languageId;
455
456
        return $this;
457
    }
458
459
    /**
460
     * @return array
461
     */
462
    public function getLabels()
463
    {
464
        return $this->labels;
465
    }
466
467
    /**
468
     * @param array $labels
469
     * @return $this
470
     */
471
    public function setLabels($labels)
472
    {
473
        $this->labels = $labels;
474
475
        return $this;
476
    }
477
}
478