Cases   A
last analyzed

Complexity

Total Complexity 34

Size/Duplication

Total Lines 480
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 34
lcom 0
cbo 0
dl 0
loc 480
rs 9.68
c 0
b 0
f 0

34 Methods

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