Test Setup Failed
Push — master ( 31ad05...ee210b )
by Yannick
253:41 queued 196:01
created

CQuiz::getReviewAnswers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
 * CQuiz
10
 *
11
 * @ORM\Table(
12
 *  name="c_quiz",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"}),
15
 *      @ORM\Index(name="session_id", columns={"session_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CQuiz
21
{
22
    /**
23
     * @var integer
24
     *
25
     * @ORM\Column(name="iid", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    private $iid;
0 ignored issues
show
Unused Code introduced by
The property $iid is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
30
31
    /**
32
     * @var integer
33
     *
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    private $cId;
37
38
    /**
39
     * @var integer
40
     *
41
     * @ORM\Column(name="id", type="integer", nullable=true)
42
     */
43
    private $id;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="title", type="string", length=255, nullable=false)
49
     */
50
    private $title;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="description", type="text", nullable=true)
56
     */
57
    private $description;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="sound", type="string", length=255, nullable=true)
63
     */
64
    private $sound;
65
66
    /**
67
     * @var boolean
68
     *
69
     * @ORM\Column(name="type", type="boolean", nullable=false)
70
     */
71
    private $type;
72
73
    /**
74
     * @var integer
75
     *
76
     * @ORM\Column(name="random", type="integer", nullable=false)
77
     */
78
    private $random;
79
80
    /**
81
     * @var boolean
82
     *
83
     * @ORM\Column(name="random_answers", type="boolean", nullable=false)
84
     */
85
    private $randomAnswers;
86
87
    /**
88
     * @var boolean
89
     *
90
     * @ORM\Column(name="active", type="boolean", nullable=false)
91
     */
92
    private $active;
93
94
    /**
95
     * @var integer
96
     *
97
     * @ORM\Column(name="results_disabled", type="integer", nullable=false)
98
     */
99
    private $resultsDisabled;
100
101
    /**
102
     * @var string
103
     *
104
     * @ORM\Column(name="access_condition", type="text", nullable=true)
105
     */
106
    private $accessCondition;
107
108
    /**
109
     * @var integer
110
     *
111
     * @ORM\Column(name="max_attempt", type="integer", nullable=false)
112
     */
113
    private $maxAttempt;
114
115
    /**
116
     * @var \DateTime
117
     *
118
     * @ORM\Column(name="start_time", type="datetime", nullable=false)
119
     */
120
    private $startTime;
121
122
    /**
123
     * @var \DateTime
124
     *
125
     * @ORM\Column(name="end_time", type="datetime", nullable=false)
126
     */
127
    private $endTime;
128
129
    /**
130
     * @var integer
131
     *
132
     * @ORM\Column(name="feedback_type", type="integer", nullable=false)
133
     */
134
    private $feedbackType;
135
136
    /**
137
     * @var integer
138
     *
139
     * @ORM\Column(name="expired_time", type="integer", nullable=false)
140
     */
141
    private $expiredTime;
142
143
    /**
144
     * @var integer
145
     *
146
     * @ORM\Column(name="session_id", type="integer", nullable=true)
147
     */
148
    private $sessionId;
149
150
    /**
151
     * @var integer
152
     *
153
     * @ORM\Column(name="propagate_neg", type="integer", nullable=false)
154
     */
155
    private $propagateNeg;
156
157
    /**
158
     * @var boolean
159
     * @ORm\Column(name="save_correct_answers", type="boolean", nullable=false)
160
     */
161
    private $saveCorrectAnswers;
162
163
    /**
164
     * @var integer
165
     *
166
     * @ORM\Column(name="review_answers", type="integer", nullable=false)
167
     */
168
    private $reviewAnswers;
169
170
    /**
171
     * @var integer
172
     *
173
     * @ORM\Column(name="random_by_category", type="integer", nullable=false)
174
     */
175
    private $randomByCategory;
176
177
    /**
178
     * @var string
179
     *
180
     * @ORM\Column(name="text_when_finished", type="text", nullable=true)
181
     */
182
    private $textWhenFinished;
183
184
    /**
185
     * @var integer
186
     *
187
     * @ORM\Column(name="display_category_name", type="integer", nullable=false)
188
     */
189
    private $displayCategoryName;
190
191
    /**
192
     * @var integer
193
     *
194
     * @ORM\Column(name="pass_percentage", type="integer", nullable=true)
195
     */
196
    private $passPercentage;
197
198
    /**
199
     * @var integer
200
     *
201
     * @ORM\Column(name="question_selection_type", type="integer", nullable=true)
202
     */
203
    private $questionSelectionType;
0 ignored issues
show
Unused Code introduced by
The property $questionSelectionType is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
204
205
    /**
206
     * Set title
207
     *
208
     * @param string $title
209
     * @return CQuiz
210
     */
211
    public function setTitle($title)
212
    {
213
        $this->title = $title;
214
215
        return $this;
216
    }
217
218
    /**
219
     * Get title
220
     *
221
     * @return string
222
     */
223
    public function getTitle()
224
    {
225
        return $this->title;
226
    }
227
228
    /**
229
     * Set description
230
     *
231
     * @param string $description
232
     * @return CQuiz
233
     */
234
    public function setDescription($description)
235
    {
236
        $this->description = $description;
237
238
        return $this;
239
    }
240
241
    /**
242
     * Get description
243
     *
244
     * @return string
245
     */
246
    public function getDescription()
247
    {
248
        return $this->description;
249
    }
250
251
    /**
252
     * Set sound
253
     *
254
     * @param string $sound
255
     * @return CQuiz
256
     */
257
    public function setSound($sound)
258
    {
259
        $this->sound = $sound;
260
261
        return $this;
262
    }
263
264
    /**
265
     * Get sound
266
     *
267
     * @return string
268
     */
269
    public function getSound()
270
    {
271
        return $this->sound;
272
    }
273
274
    /**
275
     * Set type
276
     *
277
     * @param boolean $type
278
     * @return CQuiz
279
     */
280
    public function setType($type)
281
    {
282
        $this->type = $type;
283
284
        return $this;
285
    }
286
287
    /**
288
     * Get type
289
     *
290
     * @return boolean
291
     */
292
    public function getType()
293
    {
294
        return $this->type;
295
    }
296
297
    /**
298
     * Set random
299
     *
300
     * @param integer $random
301
     * @return CQuiz
302
     */
303
    public function setRandom($random)
304
    {
305
        $this->random = $random;
306
307
        return $this;
308
    }
309
310
    /**
311
     * Get random
312
     *
313
     * @return integer
314
     */
315
    public function getRandom()
316
    {
317
        return $this->random;
318
    }
319
320
    /**
321
     * Set randomAnswers
322
     *
323
     * @param boolean $randomAnswers
324
     * @return CQuiz
325
     */
326
    public function setRandomAnswers($randomAnswers)
327
    {
328
        $this->randomAnswers = $randomAnswers;
329
330
        return $this;
331
    }
332
333
    /**
334
     * Get randomAnswers
335
     *
336
     * @return boolean
337
     */
338
    public function getRandomAnswers()
339
    {
340
        return $this->randomAnswers;
341
    }
342
343
    /**
344
     * Set active
345
     *
346
     * @param boolean $active
347
     * @return CQuiz
348
     */
349
    public function setActive($active)
350
    {
351
        $this->active = $active;
352
353
        return $this;
354
    }
355
356
    /**
357
     * Get active
358
     *
359
     * @return boolean
360
     */
361
    public function getActive()
362
    {
363
        return $this->active;
364
    }
365
366
    /**
367
     * Set resultsDisabled
368
     *
369
     * @param integer $resultsDisabled
370
     * @return CQuiz
371
     */
372
    public function setResultsDisabled($resultsDisabled)
373
    {
374
        $this->resultsDisabled = $resultsDisabled;
375
376
        return $this;
377
    }
378
379
    /**
380
     * Get resultsDisabled
381
     *
382
     * @return integer
383
     */
384
    public function getResultsDisabled()
385
    {
386
        return $this->resultsDisabled;
387
    }
388
389
    /**
390
     * Set accessCondition
391
     *
392
     * @param string $accessCondition
393
     * @return CQuiz
394
     */
395
    public function setAccessCondition($accessCondition)
396
    {
397
        $this->accessCondition = $accessCondition;
398
399
        return $this;
400
    }
401
402
    /**
403
     * Get accessCondition
404
     *
405
     * @return string
406
     */
407
    public function getAccessCondition()
408
    {
409
        return $this->accessCondition;
410
    }
411
412
    /**
413
     * Set maxAttempt
414
     *
415
     * @param integer $maxAttempt
416
     * @return CQuiz
417
     */
418
    public function setMaxAttempt($maxAttempt)
419
    {
420
        $this->maxAttempt = $maxAttempt;
421
422
        return $this;
423
    }
424
425
    /**
426
     * Get maxAttempt
427
     *
428
     * @return integer
429
     */
430
    public function getMaxAttempt()
431
    {
432
        return $this->maxAttempt;
433
    }
434
435
    /**
436
     * Set startTime
437
     *
438
     * @param \DateTime $startTime
439
     * @return CQuiz
440
     */
441
    public function setStartTime($startTime)
442
    {
443
        $this->startTime = $startTime;
444
445
        return $this;
446
    }
447
448
    /**
449
     * Get startTime
450
     *
451
     * @return \DateTime
452
     */
453
    public function getStartTime()
454
    {
455
        return $this->startTime;
456
    }
457
458
    /**
459
     * Set endTime
460
     *
461
     * @param \DateTime $endTime
462
     * @return CQuiz
463
     */
464
    public function setEndTime($endTime)
465
    {
466
        $this->endTime = $endTime;
467
468
        return $this;
469
    }
470
471
    /**
472
     * Get endTime
473
     *
474
     * @return \DateTime
475
     */
476
    public function getEndTime()
477
    {
478
        return $this->endTime;
479
    }
480
481
    /**
482
     * Set feedbackType
483
     *
484
     * @param integer $feedbackType
485
     * @return CQuiz
486
     */
487
    public function setFeedbackType($feedbackType)
488
    {
489
        $this->feedbackType = $feedbackType;
490
491
        return $this;
492
    }
493
494
    /**
495
     * Get feedbackType
496
     *
497
     * @return integer
498
     */
499
    public function getFeedbackType()
500
    {
501
        return $this->feedbackType;
502
    }
503
504
    /**
505
     * Set expiredTime
506
     *
507
     * @param integer $expiredTime
508
     * @return CQuiz
509
     */
510
    public function setExpiredTime($expiredTime)
511
    {
512
        $this->expiredTime = $expiredTime;
513
514
        return $this;
515
    }
516
517
    /**
518
     * Get expiredTime
519
     *
520
     * @return integer
521
     */
522
    public function getExpiredTime()
523
    {
524
        return $this->expiredTime;
525
    }
526
527
    /**
528
     * Set sessionId
529
     *
530
     * @param integer $sessionId
531
     * @return CQuiz
532
     */
533
    public function setSessionId($sessionId)
534
    {
535
        $this->sessionId = $sessionId;
536
537
        return $this;
538
    }
539
540
    /**
541
     * Get sessionId
542
     *
543
     * @return integer
544
     */
545
    public function getSessionId()
546
    {
547
        return $this->sessionId;
548
    }
549
550
    /**
551
     * Set propagateNeg
552
     *
553
     * @param integer $propagateNeg
554
     * @return CQuiz
555
     */
556
    public function setPropagateNeg($propagateNeg)
557
    {
558
        $this->propagateNeg = $propagateNeg;
559
560
        return $this;
561
    }
562
563
    /**
564
     * Get propagateNeg
565
     *
566
     * @return integer
567
     */
568
    public function getPropagateNeg()
569
    {
570
        return $this->propagateNeg;
571
    }
572
573
    /**
574
     * @param $saveCorrectAnswers boolean
575
     * @return CQuiz
576
     */
577
    public function setSaveCorrectAnswers($saveCorrectAnswers)
578
    {
579
        $this->saveCorrectAnswers = $saveCorrectAnswers;
580
581
        return $this;
582
    }
583
584
    /**
585
     * @return boolean
586
     */
587
    public function getSaveCorrectAnswers()
588
    {
589
        return $this->saveCorrectAnswers;
590
    }
591
592
    /**
593
     * Set reviewAnswers
594
     *
595
     * @param integer $reviewAnswers
596
     * @return CQuiz
597
     */
598
    public function setReviewAnswers($reviewAnswers)
599
    {
600
        $this->reviewAnswers = $reviewAnswers;
601
602
        return $this;
603
    }
604
605
    /**
606
     * Get reviewAnswers
607
     *
608
     * @return integer
609
     */
610
    public function getReviewAnswers()
611
    {
612
        return $this->reviewAnswers;
613
    }
614
615
    /**
616
     * Set randomByCategory
617
     *
618
     * @param integer $randomByCategory
619
     * @return CQuiz
620
     */
621
    public function setRandomByCategory($randomByCategory)
622
    {
623
        $this->randomByCategory = $randomByCategory;
624
625
        return $this;
626
    }
627
628
    /**
629
     * Get randomByCategory
630
     *
631
     * @return integer
632
     */
633
    public function getRandomByCategory()
634
    {
635
        return $this->randomByCategory;
636
    }
637
638
    /**
639
     * Set textWhenFinished
640
     *
641
     * @param string $textWhenFinished
642
     * @return CQuiz
643
     */
644
    public function setTextWhenFinished($textWhenFinished)
645
    {
646
        $this->textWhenFinished = $textWhenFinished;
647
648
        return $this;
649
    }
650
651
    /**
652
     * Get textWhenFinished
653
     *
654
     * @return string
655
     */
656
    public function getTextWhenFinished()
657
    {
658
        return $this->textWhenFinished;
659
    }
660
661
    /**
662
     * Set displayCategoryName
663
     *
664
     * @param integer $displayCategoryName
665
     * @return CQuiz
666
     */
667
    public function setDisplayCategoryName($displayCategoryName)
668
    {
669
        $this->displayCategoryName = $displayCategoryName;
670
671
        return $this;
672
    }
673
674
    /**
675
     * Get displayCategoryName
676
     *
677
     * @return integer
678
     */
679
    public function getDisplayCategoryName()
680
    {
681
        return $this->displayCategoryName;
682
    }
683
684
    /**
685
     * Set passPercentage
686
     *
687
     * @param integer $passPercentage
688
     * @return CQuiz
689
     */
690
    public function setPassPercentage($passPercentage)
691
    {
692
        $this->passPercentage = $passPercentage;
693
694
        return $this;
695
    }
696
697
    /**
698
     * Get passPercentage
699
     *
700
     * @return integer
701
     */
702
    public function getPassPercentage()
703
    {
704
        return $this->passPercentage;
705
    }
706
707
    /**
708
     * Set id
709
     *
710
     * @param integer $id
711
     * @return CQuiz
712
     */
713
    public function setId($id)
714
    {
715
        $this->id = $id;
716
717
        return $this;
718
    }
719
720
    /**
721
     * Get id
722
     *
723
     * @return integer
724
     */
725
    public function getId()
726
    {
727
        return $this->id;
728
    }
729
730
    /**
731
     * Set cId
732
     *
733
     * @param integer $cId
734
     * @return CQuiz
735
     */
736
    public function setCId($cId)
737
    {
738
        $this->cId = $cId;
739
740
        return $this;
741
    }
742
743
    /**
744
     * Get cId
745
     *
746
     * @return integer
747
     */
748
    public function getCId()
749
    {
750
        return $this->cId;
751
    }
752
}
753