Completed
Push — master ( 60c940...b1fed9 )
by Julito
32:05 queued 21:49
created

CGroupCategory::setDocAccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
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="document_access", type="integer", nullable=false, options={"default":0})
146
     */
147
    protected $documentAccess;
148
149
    /**
150
     * Set title.
151
     *
152
     * @param string $title
153
     *
154
     * @return CGroupCategory
155
     */
156
    public function setTitle($title)
157
    {
158
        $this->title = $title;
159
160
        return $this;
161
    }
162
163
    /**
164
     * Get title.
165
     *
166
     * @return string
167
     */
168
    public function getTitle()
169
    {
170
        return $this->title;
171
    }
172
173
    /**
174
     * Set description.
175
     *
176
     * @param string $description
177
     *
178
     * @return CGroupCategory
179
     */
180
    public function setDescription($description)
181
    {
182
        $this->description = $description;
183
184
        return $this;
185
    }
186
187
    /**
188
     * Get description.
189
     *
190
     * @return string
191
     */
192
    public function getDescription()
193
    {
194
        return $this->description;
195
    }
196
197
    /**
198
     * Set docState.
199
     *
200
     * @param bool $docState
201
     *
202
     * @return CGroupCategory
203
     */
204
    public function setDocState($docState)
205
    {
206
        $this->docState = $docState;
207
208
        return $this;
209
    }
210
211
    /**
212
     * Get docState.
213
     *
214
     * @return bool
215
     */
216
    public function getDocState()
217
    {
218
        return $this->docState;
219
    }
220
221
    /**
222
     * Set calendarState.
223
     *
224
     * @param bool $calendarState
225
     *
226
     * @return CGroupCategory
227
     */
228
    public function setCalendarState($calendarState)
229
    {
230
        $this->calendarState = $calendarState;
231
232
        return $this;
233
    }
234
235
    /**
236
     * Get calendarState.
237
     *
238
     * @return bool
239
     */
240
    public function getCalendarState()
241
    {
242
        return $this->calendarState;
243
    }
244
245
    /**
246
     * Set workState.
247
     *
248
     * @param bool $workState
249
     *
250
     * @return CGroupCategory
251
     */
252
    public function setWorkState($workState)
253
    {
254
        $this->workState = $workState;
255
256
        return $this;
257
    }
258
259
    /**
260
     * Get workState.
261
     *
262
     * @return bool
263
     */
264
    public function getWorkState()
265
    {
266
        return $this->workState;
267
    }
268
269
    /**
270
     * Set announcementsState.
271
     *
272
     * @param bool $announcementsState
273
     *
274
     * @return CGroupCategory
275
     */
276
    public function setAnnouncementsState($announcementsState)
277
    {
278
        $this->announcementsState = $announcementsState;
279
280
        return $this;
281
    }
282
283
    /**
284
     * Get announcementsState.
285
     *
286
     * @return bool
287
     */
288
    public function getAnnouncementsState()
289
    {
290
        return $this->announcementsState;
291
    }
292
293
    /**
294
     * Set forumState.
295
     *
296
     * @param bool $forumState
297
     *
298
     * @return CGroupCategory
299
     */
300
    public function setForumState($forumState)
301
    {
302
        $this->forumState = $forumState;
303
304
        return $this;
305
    }
306
307
    /**
308
     * Get forumState.
309
     *
310
     * @return bool
311
     */
312
    public function getForumState()
313
    {
314
        return $this->forumState;
315
    }
316
317
    /**
318
     * Set wikiState.
319
     *
320
     * @param bool $wikiState
321
     *
322
     * @return CGroupCategory
323
     */
324
    public function setWikiState($wikiState)
325
    {
326
        $this->wikiState = $wikiState;
327
328
        return $this;
329
    }
330
331
    /**
332
     * Get wikiState.
333
     *
334
     * @return bool
335
     */
336
    public function getWikiState()
337
    {
338
        return $this->wikiState;
339
    }
340
341
    /**
342
     * Set chatState.
343
     *
344
     * @param bool $chatState
345
     *
346
     * @return CGroupCategory
347
     */
348
    public function setChatState($chatState)
349
    {
350
        $this->chatState = $chatState;
351
352
        return $this;
353
    }
354
355
    /**
356
     * Get chatState.
357
     *
358
     * @return bool
359
     */
360
    public function getChatState()
361
    {
362
        return $this->chatState;
363
    }
364
365
    /**
366
     * Set maxStudent.
367
     *
368
     * @param int $maxStudent
369
     *
370
     * @return CGroupCategory
371
     */
372
    public function setMaxStudent($maxStudent)
373
    {
374
        $this->maxStudent = $maxStudent;
375
376
        return $this;
377
    }
378
379
    /**
380
     * Get maxStudent.
381
     *
382
     * @return int
383
     */
384
    public function getMaxStudent()
385
    {
386
        return $this->maxStudent;
387
    }
388
389
    /**
390
     * Set selfRegAllowed.
391
     *
392
     * @param bool $selfRegAllowed
393
     *
394
     * @return CGroupCategory
395
     */
396
    public function setSelfRegAllowed($selfRegAllowed)
397
    {
398
        $this->selfRegAllowed = $selfRegAllowed;
399
400
        return $this;
401
    }
402
403
    /**
404
     * Get selfRegAllowed.
405
     *
406
     * @return bool
407
     */
408
    public function getSelfRegAllowed()
409
    {
410
        return $this->selfRegAllowed;
411
    }
412
413
    /**
414
     * Set selfUnregAllowed.
415
     *
416
     * @param bool $selfUnregAllowed
417
     *
418
     * @return CGroupCategory
419
     */
420
    public function setSelfUnregAllowed($selfUnregAllowed)
421
    {
422
        $this->selfUnregAllowed = $selfUnregAllowed;
423
424
        return $this;
425
    }
426
427
    /**
428
     * Get selfUnregAllowed.
429
     *
430
     * @return bool
431
     */
432
    public function getSelfUnregAllowed()
433
    {
434
        return $this->selfUnregAllowed;
435
    }
436
437
    /**
438
     * Set groupsPerUser.
439
     *
440
     * @param int $groupsPerUser
441
     *
442
     * @return CGroupCategory
443
     */
444
    public function setGroupsPerUser($groupsPerUser)
445
    {
446
        $this->groupsPerUser = $groupsPerUser;
447
448
        return $this;
449
    }
450
451
    /**
452
     * Get groupsPerUser.
453
     *
454
     * @return int
455
     */
456
    public function getGroupsPerUser()
457
    {
458
        return $this->groupsPerUser;
459
    }
460
461
    /**
462
     * Set displayOrder.
463
     *
464
     * @param int $displayOrder
465
     *
466
     * @return CGroupCategory
467
     */
468
    public function setDisplayOrder($displayOrder)
469
    {
470
        $this->displayOrder = $displayOrder;
471
472
        return $this;
473
    }
474
475
    /**
476
     * Get displayOrder.
477
     *
478
     * @return int
479
     */
480
    public function getDisplayOrder()
481
    {
482
        return $this->displayOrder;
483
    }
484
485
    /**
486
     * Set id.
487
     *
488
     * @param int $id
489
     *
490
     * @return CGroupCategory
491
     */
492
    public function setId($id)
493
    {
494
        $this->id = $id;
495
496
        return $this;
497
    }
498
499
    /**
500
     * Get id.
501
     *
502
     * @return int
503
     */
504
    public function getId()
505
    {
506
        return $this->id;
507
    }
508
509
    /**
510
     * Set cId.
511
     *
512
     * @param int $cId
513
     *
514
     * @return CGroupCategory
515
     */
516
    public function setCId($cId)
517
    {
518
        $this->cId = $cId;
519
520
        return $this;
521
    }
522
523
    /**
524
     * Get cId.
525
     *
526
     * @return int
527
     */
528
    public function getCId()
529
    {
530
        return $this->cId;
531
    }
532
533
    /**
534
     * @return int
535
     */
536
    public function getDocumentAccess(): int
537
    {
538
        return $this->documentAccess;
539
    }
540
541
    /**
542
     * @param int $documentAccess
543
     *
544
     * @return CGroupCategory
545
     */
546
    public function setDocumentAccess(int $documentAccess): CGroupCategory
547
    {
548
        $this->documentAccess = $documentAccess;
549
550
        return $this;
551
    }
552
}
553