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

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