Passed
Push — master ( 4d43e7...34bdad )
by Julito
13:39
created

CGroupCategory::getDocumentAccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CGroupCategory.
10
 *
11
 * @ORM\Table(
12
 *  name="c_group_category",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CGroupCategory
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    protected $iid;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    protected $cId;
36
37
    /**
38
     * @var int
39
     *
40
     * @ORM\Column(name="id", type="integer", nullable=true)
41
     */
42
    protected $id;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="title", type="string", length=255, nullable=false)
48
     */
49
    protected $title;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="description", type="text", nullable=false)
55
     */
56
    protected $description;
57
58
    /**
59
     * @var bool
60
     *
61
     * @ORM\Column(name="doc_state", type="boolean", nullable=false)
62
     */
63
    protected $docState;
64
65
    /**
66
     * @var bool
67
     *
68
     * @ORM\Column(name="calendar_state", type="boolean", nullable=false)
69
     */
70
    protected $calendarState;
71
72
    /**
73
     * @var bool
74
     *
75
     * @ORM\Column(name="work_state", type="boolean", nullable=false)
76
     */
77
    protected $workState;
78
79
    /**
80
     * @var bool
81
     *
82
     * @ORM\Column(name="announcements_state", type="boolean", nullable=false)
83
     */
84
    protected $announcementsState;
85
86
    /**
87
     * @var bool
88
     *
89
     * @ORM\Column(name="forum_state", type="boolean", nullable=false)
90
     */
91
    protected $forumState;
92
93
    /**
94
     * @var bool
95
     *
96
     * @ORM\Column(name="wiki_state", type="boolean", nullable=false)
97
     */
98
    protected $wikiState;
99
100
    /**
101
     * @var bool
102
     *
103
     * @ORM\Column(name="chat_state", type="boolean", nullable=false)
104
     */
105
    protected $chatState;
106
107
    /**
108
     * @var int
109
     *
110
     * @ORM\Column(name="max_student", type="integer", nullable=false)
111
     */
112
    protected $maxStudent;
113
114
    /**
115
     * @var bool
116
     *
117
     * @ORM\Column(name="self_reg_allowed", type="boolean", nullable=false)
118
     */
119
    protected $selfRegAllowed;
120
121
    /**
122
     * @var bool
123
     *
124
     * @ORM\Column(name="self_unreg_allowed", type="boolean", nullable=false)
125
     */
126
    protected $selfUnregAllowed;
127
128
    /**
129
     * @var int
130
     *
131
     * @ORM\Column(name="groups_per_user", type="integer", nullable=false)
132
     */
133
    protected $groupsPerUser;
134
135
    /**
136
     * @var int
137
     *
138
     * @ORM\Column(name="display_order", type="integer", nullable=false)
139
     */
140
    protected $displayOrder;
141
142
    /**
143
     * @var int
144
     *
145
     * ORM\Column(name="doc_access", type="integer", nullable=false, options={"default":0})
146
     */
147
    protected $docAccess;
148
149
    /**
150
     * @var int
151
     *
152
     * @ORM\Column(name="document_access", type="integer", nullable=false, options={"default":0})
153
     */
154
    protected $documentAccess;
155
156
    /**
157
     * Set title.
158
     *
159
     * @param string $title
160
     *
161
     * @return CGroupCategory
162
     */
163
    public function setTitle($title)
164
    {
165
        $this->title = $title;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get title.
172
     *
173
     * @return string
174
     */
175
    public function getTitle()
176
    {
177
        return $this->title;
178
    }
179
180
    /**
181
     * Set description.
182
     *
183
     * @param string $description
184
     *
185
     * @return CGroupCategory
186
     */
187
    public function setDescription($description)
188
    {
189
        $this->description = $description;
190
191
        return $this;
192
    }
193
194
    /**
195
     * Get description.
196
     *
197
     * @return string
198
     */
199
    public function getDescription()
200
    {
201
        return $this->description;
202
    }
203
204
    /**
205
     * Set docState.
206
     *
207
     * @param bool $docState
208
     *
209
     * @return CGroupCategory
210
     */
211
    public function setDocState($docState)
212
    {
213
        $this->docState = $docState;
214
215
        return $this;
216
    }
217
218
    /**
219
     * Get docState.
220
     *
221
     * @return bool
222
     */
223
    public function getDocState()
224
    {
225
        return $this->docState;
226
    }
227
228
    /**
229
     * Set calendarState.
230
     *
231
     * @param bool $calendarState
232
     *
233
     * @return CGroupCategory
234
     */
235
    public function setCalendarState($calendarState)
236
    {
237
        $this->calendarState = $calendarState;
238
239
        return $this;
240
    }
241
242
    /**
243
     * Get calendarState.
244
     *
245
     * @return bool
246
     */
247
    public function getCalendarState()
248
    {
249
        return $this->calendarState;
250
    }
251
252
    /**
253
     * Set workState.
254
     *
255
     * @param bool $workState
256
     *
257
     * @return CGroupCategory
258
     */
259
    public function setWorkState($workState)
260
    {
261
        $this->workState = $workState;
262
263
        return $this;
264
    }
265
266
    /**
267
     * Get workState.
268
     *
269
     * @return bool
270
     */
271
    public function getWorkState()
272
    {
273
        return $this->workState;
274
    }
275
276
    /**
277
     * Set announcementsState.
278
     *
279
     * @param bool $announcementsState
280
     *
281
     * @return CGroupCategory
282
     */
283
    public function setAnnouncementsState($announcementsState)
284
    {
285
        $this->announcementsState = $announcementsState;
286
287
        return $this;
288
    }
289
290
    /**
291
     * Get announcementsState.
292
     *
293
     * @return bool
294
     */
295
    public function getAnnouncementsState()
296
    {
297
        return $this->announcementsState;
298
    }
299
300
    /**
301
     * Set forumState.
302
     *
303
     * @param bool $forumState
304
     *
305
     * @return CGroupCategory
306
     */
307
    public function setForumState($forumState)
308
    {
309
        $this->forumState = $forumState;
310
311
        return $this;
312
    }
313
314
    /**
315
     * Get forumState.
316
     *
317
     * @return bool
318
     */
319
    public function getForumState()
320
    {
321
        return $this->forumState;
322
    }
323
324
    /**
325
     * Set wikiState.
326
     *
327
     * @param bool $wikiState
328
     *
329
     * @return CGroupCategory
330
     */
331
    public function setWikiState($wikiState)
332
    {
333
        $this->wikiState = $wikiState;
334
335
        return $this;
336
    }
337
338
    /**
339
     * Get wikiState.
340
     *
341
     * @return bool
342
     */
343
    public function getWikiState()
344
    {
345
        return $this->wikiState;
346
    }
347
348
    /**
349
     * Set chatState.
350
     *
351
     * @param bool $chatState
352
     *
353
     * @return CGroupCategory
354
     */
355
    public function setChatState($chatState)
356
    {
357
        $this->chatState = $chatState;
358
359
        return $this;
360
    }
361
362
    /**
363
     * Get chatState.
364
     *
365
     * @return bool
366
     */
367
    public function getChatState()
368
    {
369
        return $this->chatState;
370
    }
371
372
    /**
373
     * Set maxStudent.
374
     *
375
     * @param int $maxStudent
376
     *
377
     * @return CGroupCategory
378
     */
379
    public function setMaxStudent($maxStudent)
380
    {
381
        $this->maxStudent = $maxStudent;
382
383
        return $this;
384
    }
385
386
    /**
387
     * Get maxStudent.
388
     *
389
     * @return int
390
     */
391
    public function getMaxStudent()
392
    {
393
        return $this->maxStudent;
394
    }
395
396
    /**
397
     * Set selfRegAllowed.
398
     *
399
     * @param bool $selfRegAllowed
400
     *
401
     * @return CGroupCategory
402
     */
403
    public function setSelfRegAllowed($selfRegAllowed)
404
    {
405
        $this->selfRegAllowed = $selfRegAllowed;
406
407
        return $this;
408
    }
409
410
    /**
411
     * Get selfRegAllowed.
412
     *
413
     * @return bool
414
     */
415
    public function getSelfRegAllowed()
416
    {
417
        return $this->selfRegAllowed;
418
    }
419
420
    /**
421
     * Set selfUnregAllowed.
422
     *
423
     * @param bool $selfUnregAllowed
424
     *
425
     * @return CGroupCategory
426
     */
427
    public function setSelfUnregAllowed($selfUnregAllowed)
428
    {
429
        $this->selfUnregAllowed = $selfUnregAllowed;
430
431
        return $this;
432
    }
433
434
    /**
435
     * Get selfUnregAllowed.
436
     *
437
     * @return bool
438
     */
439
    public function getSelfUnregAllowed()
440
    {
441
        return $this->selfUnregAllowed;
442
    }
443
444
    /**
445
     * Set groupsPerUser.
446
     *
447
     * @param int $groupsPerUser
448
     *
449
     * @return CGroupCategory
450
     */
451
    public function setGroupsPerUser($groupsPerUser)
452
    {
453
        $this->groupsPerUser = $groupsPerUser;
454
455
        return $this;
456
    }
457
458
    /**
459
     * Get groupsPerUser.
460
     *
461
     * @return int
462
     */
463
    public function getGroupsPerUser()
464
    {
465
        return $this->groupsPerUser;
466
    }
467
468
    /**
469
     * Set displayOrder.
470
     *
471
     * @param int $displayOrder
472
     *
473
     * @return CGroupCategory
474
     */
475
    public function setDisplayOrder($displayOrder)
476
    {
477
        $this->displayOrder = $displayOrder;
478
479
        return $this;
480
    }
481
482
    /**
483
     * Get displayOrder.
484
     *
485
     * @return int
486
     */
487
    public function getDisplayOrder()
488
    {
489
        return $this->displayOrder;
490
    }
491
492
    /**
493
     * Set id.
494
     *
495
     * @param int $id
496
     *
497
     * @return CGroupCategory
498
     */
499
    public function setId($id)
500
    {
501
        $this->id = $id;
502
503
        return $this;
504
    }
505
506
    /**
507
     * Get id.
508
     *
509
     * @return int
510
     */
511
    public function getId()
512
    {
513
        return $this->id;
514
    }
515
516
    /**
517
     * Set cId.
518
     *
519
     * @param int $cId
520
     *
521
     * @return CGroupCategory
522
     */
523
    public function setCId($cId)
524
    {
525
        $this->cId = $cId;
526
527
        return $this;
528
    }
529
530
    /**
531
     * Get cId.
532
     *
533
     * @return int
534
     */
535
    public function getCId()
536
    {
537
        return $this->cId;
538
    }
539
540
    /**
541
     * @return int
542
     */
543
    public function getDocAccess(): int
544
    {
545
        return $this->docAccess;
546
    }
547
548
    /**
549
     * @param int $docAccess
550
     *
551
     * @return CGroupCategory
552
     */
553
    public function setDocAccess(int $docAccess): CGroupCategory
554
    {
555
        $this->docAccess = $docAccess;
556
557
        return $this;
558
    }
559
560
    /**
561
     * @return int
562
     */
563
    public function getDocumentAccess(): int
564
    {
565
        return $this->documentAccess;
566
    }
567
568
    /**
569
     * @param int $documentAccess
570
     *
571
     * @return CGroupCategory
572
     */
573
    public function setDocumentAccess(int $documentAccess): CGroupCategory
574
    {
575
        $this->documentAccess = $documentAccess;
576
577
        return $this;
578
    }
579
580
}
581