Passed
Push — master ( cf2309...45bdfa )
by Julito
13:01
created

CLpItem::getId()   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
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * CLpItem.
11
 *
12
 * @ORM\Table(
13
 *  name="c_lp_item",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"}),
16
 *      @ORM\Index(name="lp_id", columns={"lp_id"}),
17
 *      @ORM\Index(name="idx_c_lp_item_cid_lp_id", columns={"c_id", "lp_id"})
18
 *  }
19
 * )
20
 * @ORM\Entity
21
 */
22
class CLpItem
23
{
24
    /**
25
     * @var int
26
     *
27
     * @ORM\Column(name="iid", type="integer")
28
     * @ORM\Id
29
     * @ORM\GeneratedValue
30
     */
31
    protected $iid;
32
33
    /**
34
     * @var int
35
     *
36
     * @ORM\Column(name="c_id", type="integer")
37
     */
38
    protected $cId;
39
40
    /**
41
     * @var int
42
     *
43
     * @ORM\Column(name="id", type="integer", nullable=true)
44
     */
45
    protected $id;
46
47
    /**
48
     * @var int
49
     *
50
     * @ORM\Column(name="lp_id", type="integer", nullable=false)
51
     */
52
    protected $lpId;
53
54
    /**
55
     * @var string
56
     *
57
     * @ORM\Column(name="item_type", type="string", length=32, nullable=false)
58
     */
59
    protected $itemType;
60
61
    /**
62
     * @var string
63
     *
64
     * @ORM\Column(name="ref", type="text", nullable=false)
65
     */
66
    protected $ref;
67
68
    /**
69
     * @var string
70
     *
71
     * @ORM\Column(name="title", type="string", length=511, nullable=false)
72
     */
73
    protected $title;
74
75
    /**
76
     * @var string
77
     *
78
     * @ORM\Column(name="description", type="string", length=511, nullable=true)
79
     */
80
    protected $description;
81
82
    /**
83
     * @var string
84
     *
85
     * @ORM\Column(name="path", type="text", nullable=false)
86
     */
87
    protected $path;
88
89
    /**
90
     * @var float
91
     *
92
     * @ORM\Column(name="min_score", type="float", precision=10, scale=0, nullable=false)
93
     */
94
    protected $minScore;
95
96
    /**
97
     * @var float
98
     *
99
     * @ORM\Column(name="max_score", type="float", precision=10, scale=0, nullable=true, options={"default":"100"})
100
     */
101
    protected $maxScore;
102
103
    /**
104
     * @var float
105
     *
106
     * @ORM\Column(name="mastery_score", type="float", precision=10, scale=0, nullable=true)
107
     */
108
    protected $masteryScore;
109
110
    /**
111
     * @var int
112
     *
113
     * @ORM\Column(name="parent_item_id", type="integer", nullable=false)
114
     */
115
    protected $parentItemId;
116
117
    /**
118
     * @var int
119
     *
120
     * @ORM\Column(name="previous_item_id", type="integer", nullable=false)
121
     */
122
    protected $previousItemId;
123
124
    /**
125
     * @var int
126
     *
127
     * @ORM\Column(name="next_item_id", type="integer", nullable=false)
128
     */
129
    protected $nextItemId;
130
131
    /**
132
     * @var int
133
     *
134
     * @ORM\Column(name="display_order", type="integer", nullable=false)
135
     */
136
    protected $displayOrder;
137
138
    /**
139
     * @var string
140
     *
141
     * @ORM\Column(name="prerequisite", type="text", nullable=true)
142
     */
143
    protected $prerequisite;
144
145
    /**
146
     * @var string
147
     *
148
     * @ORM\Column(name="parameters", type="text", nullable=true)
149
     */
150
    protected $parameters;
151
152
    /**
153
     * @var string
154
     *
155
     * @ORM\Column(name="launch_data", type="text", nullable=false)
156
     */
157
    protected $launchData;
158
159
    /**
160
     * @var string
161
     *
162
     * @ORM\Column(name="max_time_allowed", type="string", length=13, nullable=true)
163
     */
164
    protected $maxTimeAllowed;
165
166
    /**
167
     * @var string
168
     *
169
     * @ORM\Column(name="terms", type="text", nullable=true)
170
     */
171
    protected $terms;
172
173
    /**
174
     * @var int
175
     *
176
     * @ORM\Column(name="search_did", type="integer", nullable=true)
177
     */
178
    protected $searchDid;
179
180
    /**
181
     * @var string
182
     *
183
     * @ORM\Column(name="audio", type="string", length=250, nullable=true)
184
     */
185
    protected $audio;
186
187
    /**
188
     * @var float
189
     *
190
     * @ORM\Column(name="prerequisite_min_score", type="float", precision=10, scale=0, nullable=true)
191
     */
192
    protected $prerequisiteMinScore;
193
194
    /**
195
     * @var float
196
     *
197
     * @ORM\Column(name="prerequisite_max_score", type="float", precision=10, scale=0, nullable=true)
198
     */
199
    protected $prerequisiteMaxScore;
200
201
    /**
202
     * CLpItem constructor.
203
     */
204
    public function __construct()
205
    {
206
        $this->maxScore = 100.0;
207
    }
208
209
    /**
210
     * @return int
211
     */
212
    public function getIid(): int
213
    {
214
        return $this->iid;
215
    }
216
217
    /**
218
     * Set lpId.
219
     *
220
     * @param int $lpId
221
     *
222
     * @return CLpItem
223
     */
224
    public function setLpId($lpId)
225
    {
226
        $this->lpId = $lpId;
227
228
        return $this;
229
    }
230
231
    /**
232
     * Get lpId.
233
     *
234
     * @return int
235
     */
236
    public function getLpId()
237
    {
238
        return $this->lpId;
239
    }
240
241
    /**
242
     * Set itemType.
243
     *
244
     * @param string $itemType
245
     *
246
     * @return CLpItem
247
     */
248
    public function setItemType($itemType)
249
    {
250
        $this->itemType = $itemType;
251
252
        return $this;
253
    }
254
255
    /**
256
     * Get itemType.
257
     *
258
     * @return string
259
     */
260
    public function getItemType()
261
    {
262
        return $this->itemType;
263
    }
264
265
    /**
266
     * Set ref.
267
     *
268
     * @param string $ref
269
     *
270
     * @return CLpItem
271
     */
272
    public function setRef($ref)
273
    {
274
        $this->ref = $ref;
275
276
        return $this;
277
    }
278
279
    /**
280
     * Get ref.
281
     *
282
     * @return string
283
     */
284
    public function getRef()
285
    {
286
        return $this->ref;
287
    }
288
289
    /**
290
     * Set title.
291
     *
292
     * @param string $title
293
     *
294
     * @return CLpItem
295
     */
296
    public function setTitle($title)
297
    {
298
        $this->title = $title;
299
300
        return $this;
301
    }
302
303
    /**
304
     * Get title.
305
     *
306
     * @return string
307
     */
308
    public function getTitle()
309
    {
310
        return $this->title;
311
    }
312
313
    /**
314
     * Set description.
315
     *
316
     * @param string $description
317
     *
318
     * @return CLpItem
319
     */
320
    public function setDescription($description)
321
    {
322
        $this->description = $description;
323
324
        return $this;
325
    }
326
327
    /**
328
     * Get description.
329
     *
330
     * @return string
331
     */
332
    public function getDescription()
333
    {
334
        return $this->description;
335
    }
336
337
    /**
338
     * Set path.
339
     *
340
     * @param string $path
341
     *
342
     * @return CLpItem
343
     */
344
    public function setPath($path)
345
    {
346
        $this->path = $path;
347
348
        return $this;
349
    }
350
351
    /**
352
     * Get path.
353
     *
354
     * @return string
355
     */
356
    public function getPath()
357
    {
358
        return $this->path;
359
    }
360
361
    /**
362
     * Set minScore.
363
     *
364
     * @param float $minScore
365
     *
366
     * @return CLpItem
367
     */
368
    public function setMinScore($minScore)
369
    {
370
        $this->minScore = $minScore;
371
372
        return $this;
373
    }
374
375
    /**
376
     * Get minScore.
377
     *
378
     * @return float
379
     */
380
    public function getMinScore()
381
    {
382
        return $this->minScore;
383
    }
384
385
    /**
386
     * Set maxScore.
387
     *
388
     * @param float $maxScore
389
     *
390
     * @return CLpItem
391
     */
392
    public function setMaxScore($maxScore)
393
    {
394
        $this->maxScore = $maxScore;
395
396
        return $this;
397
    }
398
399
    /**
400
     * Get maxScore.
401
     *
402
     * @return float
403
     */
404
    public function getMaxScore()
405
    {
406
        return $this->maxScore;
407
    }
408
409
    /**
410
     * Set masteryScore.
411
     *
412
     * @param float $masteryScore
413
     *
414
     * @return CLpItem
415
     */
416
    public function setMasteryScore($masteryScore)
417
    {
418
        $this->masteryScore = $masteryScore;
419
420
        return $this;
421
    }
422
423
    /**
424
     * Get masteryScore.
425
     *
426
     * @return float
427
     */
428
    public function getMasteryScore()
429
    {
430
        return $this->masteryScore;
431
    }
432
433
    /**
434
     * Set parentItemId.
435
     *
436
     * @param int $parentItemId
437
     *
438
     * @return CLpItem
439
     */
440
    public function setParentItemId($parentItemId)
441
    {
442
        $this->parentItemId = $parentItemId;
443
444
        return $this;
445
    }
446
447
    /**
448
     * Get parentItemId.
449
     *
450
     * @return int
451
     */
452
    public function getParentItemId()
453
    {
454
        return $this->parentItemId;
455
    }
456
457
    /**
458
     * Set previousItemId.
459
     *
460
     * @param int $previousItemId
461
     *
462
     * @return CLpItem
463
     */
464
    public function setPreviousItemId($previousItemId)
465
    {
466
        $this->previousItemId = $previousItemId;
467
468
        return $this;
469
    }
470
471
    /**
472
     * Get previousItemId.
473
     *
474
     * @return int
475
     */
476
    public function getPreviousItemId()
477
    {
478
        return $this->previousItemId;
479
    }
480
481
    /**
482
     * Set nextItemId.
483
     *
484
     * @param int $nextItemId
485
     *
486
     * @return CLpItem
487
     */
488
    public function setNextItemId($nextItemId)
489
    {
490
        $this->nextItemId = $nextItemId;
491
492
        return $this;
493
    }
494
495
    /**
496
     * Get nextItemId.
497
     *
498
     * @return int
499
     */
500
    public function getNextItemId()
501
    {
502
        return $this->nextItemId;
503
    }
504
505
    /**
506
     * Set displayOrder.
507
     *
508
     * @param int $displayOrder
509
     *
510
     * @return CLpItem
511
     */
512
    public function setDisplayOrder($displayOrder)
513
    {
514
        $this->displayOrder = $displayOrder;
515
516
        return $this;
517
    }
518
519
    /**
520
     * Get displayOrder.
521
     *
522
     * @return int
523
     */
524
    public function getDisplayOrder()
525
    {
526
        return $this->displayOrder;
527
    }
528
529
    /**
530
     * Set prerequisite.
531
     *
532
     * @param string $prerequisite
533
     *
534
     * @return CLpItem
535
     */
536
    public function setPrerequisite($prerequisite)
537
    {
538
        $this->prerequisite = $prerequisite;
539
540
        return $this;
541
    }
542
543
    /**
544
     * Get prerequisite.
545
     *
546
     * @return string
547
     */
548
    public function getPrerequisite()
549
    {
550
        return $this->prerequisite;
551
    }
552
553
    /**
554
     * Set parameters.
555
     *
556
     * @param string $parameters
557
     *
558
     * @return CLpItem
559
     */
560
    public function setParameters($parameters)
561
    {
562
        $this->parameters = $parameters;
563
564
        return $this;
565
    }
566
567
    /**
568
     * Get parameters.
569
     *
570
     * @return string
571
     */
572
    public function getParameters()
573
    {
574
        return $this->parameters;
575
    }
576
577
    /**
578
     * Set launchData.
579
     *
580
     * @param string $launchData
581
     *
582
     * @return CLpItem
583
     */
584
    public function setLaunchData($launchData)
585
    {
586
        $this->launchData = $launchData;
587
588
        return $this;
589
    }
590
591
    /**
592
     * Get launchData.
593
     *
594
     * @return string
595
     */
596
    public function getLaunchData()
597
    {
598
        return $this->launchData;
599
    }
600
601
    /**
602
     * Set maxTimeAllowed.
603
     *
604
     * @param string $maxTimeAllowed
605
     *
606
     * @return CLpItem
607
     */
608
    public function setMaxTimeAllowed($maxTimeAllowed)
609
    {
610
        $this->maxTimeAllowed = $maxTimeAllowed;
611
612
        return $this;
613
    }
614
615
    /**
616
     * Get maxTimeAllowed.
617
     *
618
     * @return string
619
     */
620
    public function getMaxTimeAllowed()
621
    {
622
        return $this->maxTimeAllowed;
623
    }
624
625
    /**
626
     * Set terms.
627
     *
628
     * @param string $terms
629
     *
630
     * @return CLpItem
631
     */
632
    public function setTerms($terms)
633
    {
634
        $this->terms = $terms;
635
636
        return $this;
637
    }
638
639
    /**
640
     * Get terms.
641
     *
642
     * @return string
643
     */
644
    public function getTerms()
645
    {
646
        return $this->terms;
647
    }
648
649
    /**
650
     * Set searchDid.
651
     *
652
     * @param int $searchDid
653
     *
654
     * @return CLpItem
655
     */
656
    public function setSearchDid($searchDid)
657
    {
658
        $this->searchDid = $searchDid;
659
660
        return $this;
661
    }
662
663
    /**
664
     * Get searchDid.
665
     *
666
     * @return int
667
     */
668
    public function getSearchDid()
669
    {
670
        return $this->searchDid;
671
    }
672
673
    /**
674
     * Set audio.
675
     *
676
     * @param string $audio
677
     *
678
     * @return CLpItem
679
     */
680
    public function setAudio($audio)
681
    {
682
        $this->audio = $audio;
683
684
        return $this;
685
    }
686
687
    /**
688
     * Get audio.
689
     *
690
     * @return string
691
     */
692
    public function getAudio()
693
    {
694
        return $this->audio;
695
    }
696
697
    /**
698
     * Set prerequisiteMinScore.
699
     *
700
     * @param float $prerequisiteMinScore
701
     *
702
     * @return CLpItem
703
     */
704
    public function setPrerequisiteMinScore($prerequisiteMinScore)
705
    {
706
        $this->prerequisiteMinScore = $prerequisiteMinScore;
707
708
        return $this;
709
    }
710
711
    /**
712
     * Get prerequisiteMinScore.
713
     *
714
     * @return float
715
     */
716
    public function getPrerequisiteMinScore()
717
    {
718
        return $this->prerequisiteMinScore;
719
    }
720
721
    /**
722
     * Set prerequisiteMaxScore.
723
     *
724
     * @param float $prerequisiteMaxScore
725
     *
726
     * @return CLpItem
727
     */
728
    public function setPrerequisiteMaxScore($prerequisiteMaxScore)
729
    {
730
        $this->prerequisiteMaxScore = $prerequisiteMaxScore;
731
732
        return $this;
733
    }
734
735
    /**
736
     * Get prerequisiteMaxScore.
737
     *
738
     * @return float
739
     */
740
    public function getPrerequisiteMaxScore()
741
    {
742
        return $this->prerequisiteMaxScore;
743
    }
744
745
    /**
746
     * Set id.
747
     *
748
     * @param int $id
749
     *
750
     * @return CLpItem
751
     */
752
    public function setId($id)
753
    {
754
        $this->id = $id;
755
756
        return $this;
757
    }
758
759
    /**
760
     * Get id.
761
     *
762
     * @return int
763
     */
764
    public function getId()
765
    {
766
        return $this->id;
767
    }
768
769
    /**
770
     * Set cId.
771
     *
772
     * @param int $cId
773
     *
774
     * @return CLpItem
775
     */
776
    public function setCId($cId)
777
    {
778
        $this->cId = $cId;
779
780
        return $this;
781
    }
782
783
    /**
784
     * Get cId.
785
     *
786
     * @return int
787
     */
788
    public function getCId()
789
    {
790
        return $this->cId;
791
    }
792
}
793