Passed
Push — master ( fe97dd...55e34c )
by Julito
07:41
created

CLp::getDefaultEncoding()   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 Chamilo\CoreBundle\Entity\AbstractResource;
8
use Chamilo\CoreBundle\Entity\Asset;
9
use Chamilo\CoreBundle\Entity\ResourceInterface;
10
use Doctrine\Common\Collections\ArrayCollection;
11
use Doctrine\ORM\Mapping as ORM;
12
use Gedmo\Mapping\Annotation as Gedmo;
13
use Symfony\Component\Validator\Constraints as Assert;
14
15
/**
16
 * CLp.
17
 *
18
 * @ORM\Table(
19
 *  name="c_lp"
20
 * )
21
 * @ORM\Entity
22
 */
23
class CLp extends AbstractResource implements ResourceInterface
24
{
25
    public const LP_TYPE = 1;
26
    public const SCORM_TYPE = 2;
27
    public const AICC_TYPE = 3;
28
29
    /**
30
     * @var int
31
     *
32
     * @ORM\Column(name="iid", type="integer")
33
     * @ORM\Id
34
     * @ORM\GeneratedValue
35
     */
36
    protected $iid;
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="c_id", type="integer")
42
     */
43
    protected $cId;
44
45
    /**
46
     * @var int
47
     *
48
     * @ORM\Column(name="lp_type", type="integer", nullable=false)
49
     */
50
    protected $lpType;
51
52
    /**
53
     * @var string
54
     * @Assert\NotBlank()
55
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
56
     */
57
    protected $name;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="ref", type="text", nullable=true)
63
     */
64
    protected $ref;
65
66
    /**
67
     * @var string
68
     *
69
     * @ORM\Column(name="description", type="text", nullable=true)
70
     */
71
    protected $description;
72
73
    /**
74
     * @var string
75
     *
76
     * @ORM\Column(name="path", type="text", nullable=false)
77
     */
78
    protected $path;
79
80
    /**
81
     * @var bool
82
     *
83
     * @ORM\Column(name="force_commit", type="boolean", nullable=false)
84
     */
85
    protected $forceCommit;
86
87
    /**
88
     * @var string
89
     *
90
     * @ORM\Column(name="default_view_mod", type="string", length=32, nullable=false, options={"default":"embedded"})
91
     */
92
    protected $defaultViewMod;
93
94
    /**
95
     * @var string
96
     *
97
     * @ORM\Column(name="default_encoding", type="string", length=32, nullable=false, options={"default":"UTF-8"})
98
     */
99
    protected $defaultEncoding;
100
101
    /**
102
     * @var int
103
     *
104
     * @ORM\Column(name="display_order", type="integer", nullable=false, options={"default":"0"})
105
     */
106
    protected $displayOrder;
107
108
    /**
109
     * @var string
110
     *
111
     * @ORM\Column(name="content_maker", type="text", nullable=false)
112
     */
113
    protected $contentMaker;
114
115
    /**
116
     * @var string
117
     *
118
     * @ORM\Column(name="content_local", type="string", length=32, nullable=false, options={"default":"local"})
119
     */
120
    protected $contentLocal;
121
122
    /**
123
     * @var string
124
     *
125
     * @ORM\Column(name="content_license", type="text", nullable=false)
126
     */
127
    protected $contentLicense;
128
129
    /**
130
     * @var bool
131
     *
132
     * @ORM\Column(name="prevent_reinit", type="boolean", nullable=false, options={"default":"1"})
133
     */
134
    protected $preventReinit;
135
136
    /**
137
     * @var string
138
     *
139
     * @ORM\Column(name="js_lib", type="text", nullable=false)
140
     */
141
    protected $jsLib;
142
143
    /**
144
     * @var bool
145
     *
146
     * @ORM\Column(name="debug", type="boolean", nullable=false)
147
     */
148
    protected $debug;
149
150
    /**
151
     * @var string
152
     *
153
     * @ORM\Column(name="theme", type="string", length=255, nullable=false)
154
     */
155
    protected $theme;
156
157
    /**
158
     * @var string
159
     *
160
     * @ORM\Column(name="author", type="text", nullable=false)
161
     */
162
    protected $author;
163
164
    /**
165
     * @var int
166
     *
167
     * @ORM\Column(name="session_id", type="integer", nullable=false)
168
     */
169
    protected $sessionId;
170
171
    /**
172
     * @var int
173
     *
174
     * @ORM\Column(name="prerequisite", type="integer", nullable=false)
175
     */
176
    protected $prerequisite;
177
178
    /**
179
     * @var bool
180
     *
181
     * @ORM\Column(name="hide_toc_frame", type="boolean", nullable=false)
182
     */
183
    protected $hideTocFrame;
184
185
    /**
186
     * @var bool
187
     *
188
     * @ORM\Column(name="seriousgame_mode", type="boolean", nullable=false)
189
     */
190
    protected $seriousgameMode;
191
192
    /**
193
     * @var int
194
     *
195
     * @ORM\Column(name="use_max_score", type="integer", nullable=false, options={"default":"1"})
196
     */
197
    protected $useMaxScore;
198
199
    /**
200
     * @var int
201
     *
202
     * @ORM\Column(name="autolaunch", type="integer", nullable=false)
203
     */
204
    protected $autolaunch;
205
206
    /**
207
     * @var CLpCategory|null
208
     *
209
     * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLpCategory", inversedBy="lps")
210
     * @ORM\JoinColumn(name="category_id", referencedColumnName="iid")
211
     */
212
    protected $category;
213
214
    /**
215
     * @var int
216
     *
217
     * @ORM\Column(name="max_attempts", type="integer", nullable=false)
218
     */
219
    protected $maxAttempts;
220
221
    /**
222
     * @var int
223
     *
224
     * @ORM\Column(name="subscribe_users", type="integer", nullable=false)
225
     */
226
    protected $subscribeUsers;
227
228
    /**
229
     * @var \DateTime
230
     *
231
     * @Gedmo\Timestampable(on="create")
232
     *
233
     * @ORM\Column(name="created_on", type="datetime", nullable=false)
234
     */
235
    protected $createdOn;
236
237
    /**
238
     * @var \DateTime
239
     *
240
     * @Gedmo\Timestampable(on="update")
241
     *
242
     * @ORM\Column(name="modified_on", type="datetime", nullable=false)
243
     */
244
    protected $modifiedOn;
245
246
    /**
247
     * @var \DateTime
248
     *
249
     * @ORM\Column(name="publicated_on", type="datetime", nullable=true)
250
     */
251
    protected $publicatedOn;
252
253
    /**
254
     * @var \DateTime
255
     *
256
     * @ORM\Column(name="expired_on", type="datetime", nullable=true)
257
     */
258
    protected $expiredOn;
259
260
    /**
261
     * @var int
262
     *
263
     * @ORM\Column(name="accumulate_scorm_time", type="integer", nullable=false, options={"default":1})
264
     */
265
    protected $accumulateScormTime;
266
267
    /**
268
     * @var int
269
     *
270
     * @ORM\Column(name="accumulate_work_time", type="integer", nullable=false, options={"default":0})
271
     */
272
    protected $accumulateWorkTime;
273
274
    /**
275
     * @var CLpItem[]
276
     *
277
     * @ORM\OneToMany(targetEntity="CLpItem", mappedBy="lp", cascade={"persist", "remove"}, orphanRemoval=true)
278
     */
279
    protected $items;
280
281
    /**
282
     * @var CForumForum
283
     * @ORM\OneToOne(targetEntity="Chamilo\CourseBundle\Entity\CForumForum", mappedBy="lp")
284
     */
285
    protected $forum;
286
287
    /**
288
     * @var Asset|null
289
     *
290
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Asset")
291
     * @ORM\JoinColumn(name="asset_id", referencedColumnName="id")
292
     */
293
    protected $asset;
294
295
    public function __construct()
296
    {
297
        $this->accumulateScormTime = 1;
298
        $this->accumulateWorkTime = 0;
299
        $this->author = '';
300
        $this->autolaunch = 0;
301
        $this->contentLocal = 'local';
302
        $this->contentMaker = 'chamilo';
303
        $this->contentLicense = '';
304
        $this->createdOn = new \DateTime();
305
        $this->modifiedOn = new \DateTime();
306
        $this->publicatedOn = new \DateTime();
307
        $this->defaultEncoding = 'UTF-8';
308
        $this->defaultViewMod = 'embedded';
309
        $this->description = '';
310
        $this->displayOrder = 0;
311
        $this->debug = 0;
0 ignored issues
show
Documentation Bug introduced by
The property $debug was declared of type boolean, but 0 is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
312
        $this->forceCommit = 0;
0 ignored issues
show
Documentation Bug introduced by
The property $forceCommit was declared of type boolean, but 0 is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
313
        $this->hideTocFrame = 0;
0 ignored issues
show
Documentation Bug introduced by
The property $hideTocFrame was declared of type boolean, but 0 is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
314
        $this->jsLib = '';
315
        $this->maxAttempts = 0;
316
        $this->preventReinit = true;
317
        $this->path = '';
318
        $this->prerequisite = 0;
319
        $this->seriousgameMode = 0;
0 ignored issues
show
Documentation Bug introduced by
The property $seriousgameMode was declared of type boolean, but 0 is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
320
        $this->subscribeUsers = 0;
321
        $this->useMaxScore = 1;
322
        $this->theme = '';
323
        $this->items = new ArrayCollection();
0 ignored issues
show
Documentation Bug introduced by
It seems like new Doctrine\Common\Collections\ArrayCollection() of type Doctrine\Common\Collections\ArrayCollection is incompatible with the declared type Chamilo\CourseBundle\Entity\CLpItem[] of property $items.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
324
    }
325
326
    public function __toString(): string
327
    {
328
        return $this->getName();
329
    }
330
331
    /**
332
     * Set lpType.
333
     *
334
     * @param int $lpType
335
     *
336
     * @return CLp
337
     */
338
    public function setLpType($lpType)
339
    {
340
        $this->lpType = $lpType;
341
342
        return $this;
343
    }
344
345
    /**
346
     * Get lpType.
347
     *
348
     * @return int
349
     */
350
    public function getLpType()
351
    {
352
        return $this->lpType;
353
    }
354
355
    /**
356
     * Set name.
357
     *
358
     * @param string $name
359
     *
360
     * @return CLp
361
     */
362
    public function setName($name)
363
    {
364
        $this->name = $name;
365
366
        return $this;
367
    }
368
369
    /**
370
     * Get name.
371
     *
372
     * @return string
373
     */
374
    public function getName()
375
    {
376
        return (string) $this->name;
377
    }
378
379
    /**
380
     * Set ref.
381
     *
382
     * @param string $ref
383
     *
384
     * @return CLp
385
     */
386
    public function setRef($ref)
387
    {
388
        $this->ref = $ref;
389
390
        return $this;
391
    }
392
393
    /**
394
     * Get ref.
395
     *
396
     * @return string
397
     */
398
    public function getRef()
399
    {
400
        return $this->ref;
401
    }
402
403
    /**
404
     * Set description.
405
     *
406
     * @param string $description
407
     *
408
     * @return CLp
409
     */
410
    public function setDescription($description)
411
    {
412
        $this->description = $description;
413
414
        return $this;
415
    }
416
417
    /**
418
     * Get description.
419
     *
420
     * @return string
421
     */
422
    public function getDescription()
423
    {
424
        return $this->description;
425
    }
426
427
    /**
428
     * Set path.
429
     *
430
     * @param string $path
431
     *
432
     * @return CLp
433
     */
434
    public function setPath($path)
435
    {
436
        $this->path = $path;
437
438
        return $this;
439
    }
440
441
    /**
442
     * Get path.
443
     *
444
     * @return string
445
     */
446
    public function getPath()
447
    {
448
        return $this->path;
449
    }
450
451
    /**
452
     * Set forceCommit.
453
     *
454
     * @param bool $forceCommit
455
     *
456
     * @return CLp
457
     */
458
    public function setForceCommit($forceCommit)
459
    {
460
        $this->forceCommit = $forceCommit;
461
462
        return $this;
463
    }
464
465
    /**
466
     * Get forceCommit.
467
     *
468
     * @return bool
469
     */
470
    public function getForceCommit()
471
    {
472
        return $this->forceCommit;
473
    }
474
475
    /**
476
     * Set defaultViewMod.
477
     *
478
     * @param string $defaultViewMod
479
     *
480
     * @return CLp
481
     */
482
    public function setDefaultViewMod($defaultViewMod)
483
    {
484
        $this->defaultViewMod = $defaultViewMod;
485
486
        return $this;
487
    }
488
489
    /**
490
     * Get defaultViewMod.
491
     *
492
     * @return string
493
     */
494
    public function getDefaultViewMod()
495
    {
496
        return $this->defaultViewMod;
497
    }
498
499
    /**
500
     * Set defaultEncoding.
501
     *
502
     * @param string $defaultEncoding
503
     *
504
     * @return CLp
505
     */
506
    public function setDefaultEncoding($defaultEncoding)
507
    {
508
        $this->defaultEncoding = $defaultEncoding;
509
510
        return $this;
511
    }
512
513
    /**
514
     * Get defaultEncoding.
515
     *
516
     * @return string
517
     */
518
    public function getDefaultEncoding()
519
    {
520
        return $this->defaultEncoding;
521
    }
522
523
    /**
524
     * Set displayOrder.
525
     *
526
     * @param int $displayOrder
527
     *
528
     * @return CLp
529
     */
530
    public function setDisplayOrder($displayOrder)
531
    {
532
        $this->displayOrder = $displayOrder;
533
534
        return $this;
535
    }
536
537
    /**
538
     * Get displayOrder.
539
     *
540
     * @return int
541
     */
542
    public function getDisplayOrder()
543
    {
544
        return $this->displayOrder;
545
    }
546
547
    /**
548
     * Set contentMaker.
549
     *
550
     * @param string $contentMaker
551
     *
552
     * @return CLp
553
     */
554
    public function setContentMaker($contentMaker)
555
    {
556
        $this->contentMaker = $contentMaker;
557
558
        return $this;
559
    }
560
561
    /**
562
     * Get contentMaker.
563
     *
564
     * @return string
565
     */
566
    public function getContentMaker()
567
    {
568
        return $this->contentMaker;
569
    }
570
571
    /**
572
     * Set contentLocal.
573
     *
574
     * @param string $contentLocal
575
     *
576
     * @return CLp
577
     */
578
    public function setContentLocal($contentLocal)
579
    {
580
        $this->contentLocal = $contentLocal;
581
582
        return $this;
583
    }
584
585
    /**
586
     * Get contentLocal.
587
     *
588
     * @return string
589
     */
590
    public function getContentLocal()
591
    {
592
        return $this->contentLocal;
593
    }
594
595
    /**
596
     * Set contentLicense.
597
     *
598
     * @param string $contentLicense
599
     *
600
     * @return CLp
601
     */
602
    public function setContentLicense($contentLicense)
603
    {
604
        $this->contentLicense = $contentLicense;
605
606
        return $this;
607
    }
608
609
    /**
610
     * Get contentLicense.
611
     *
612
     * @return string
613
     */
614
    public function getContentLicense()
615
    {
616
        return $this->contentLicense;
617
    }
618
619
    /**
620
     * Set preventReinit.
621
     *
622
     * @param bool $preventReinit
623
     *
624
     * @return CLp
625
     */
626
    public function setPreventReinit($preventReinit)
627
    {
628
        $this->preventReinit = $preventReinit;
629
630
        return $this;
631
    }
632
633
    /**
634
     * Get preventReinit.
635
     *
636
     * @return bool
637
     */
638
    public function getPreventReinit()
639
    {
640
        return $this->preventReinit;
641
    }
642
643
    /**
644
     * Set jsLib.
645
     *
646
     * @param string $jsLib
647
     *
648
     * @return CLp
649
     */
650
    public function setJsLib($jsLib)
651
    {
652
        $this->jsLib = $jsLib;
653
654
        return $this;
655
    }
656
657
    /**
658
     * Get jsLib.
659
     *
660
     * @return string
661
     */
662
    public function getJsLib()
663
    {
664
        return $this->jsLib;
665
    }
666
667
    /**
668
     * Set debug.
669
     *
670
     * @param bool $debug
671
     *
672
     * @return CLp
673
     */
674
    public function setDebug($debug)
675
    {
676
        $this->debug = $debug;
677
678
        return $this;
679
    }
680
681
    /**
682
     * Get debug.
683
     *
684
     * @return bool
685
     */
686
    public function getDebug()
687
    {
688
        return $this->debug;
689
    }
690
691
    /**
692
     * Set theme.
693
     *
694
     * @param string $theme
695
     *
696
     * @return CLp
697
     */
698
    public function setTheme($theme)
699
    {
700
        $this->theme = $theme;
701
702
        return $this;
703
    }
704
705
    /**
706
     * Get theme.
707
     *
708
     * @return string
709
     */
710
    public function getTheme()
711
    {
712
        return $this->theme;
713
    }
714
715
    /**
716
     * Set author.
717
     *
718
     * @param string $author
719
     *
720
     * @return CLp
721
     */
722
    public function setAuthor($author)
723
    {
724
        $this->author = $author;
725
726
        return $this;
727
    }
728
729
    /**
730
     * Get author.
731
     *
732
     * @return string
733
     */
734
    public function getAuthor()
735
    {
736
        return $this->author;
737
    }
738
739
    /**
740
     * Set sessionId.
741
     *
742
     * @param int $sessionId
743
     *
744
     * @return CLp
745
     */
746
    public function setSessionId($sessionId)
747
    {
748
        $this->sessionId = $sessionId;
749
750
        return $this;
751
    }
752
753
    /**
754
     * Get sessionId.
755
     *
756
     * @return int
757
     */
758
    public function getSessionId()
759
    {
760
        return $this->sessionId;
761
    }
762
763
    /**
764
     * Set prerequisite.
765
     *
766
     * @param int $prerequisite
767
     *
768
     * @return CLp
769
     */
770
    public function setPrerequisite($prerequisite)
771
    {
772
        $this->prerequisite = $prerequisite;
773
774
        return $this;
775
    }
776
777
    /**
778
     * Get prerequisite.
779
     *
780
     * @return int
781
     */
782
    public function getPrerequisite()
783
    {
784
        return $this->prerequisite;
785
    }
786
787
    /**
788
     * Set hideTocFrame.
789
     *
790
     * @param bool $hideTocFrame
791
     *
792
     * @return CLp
793
     */
794
    public function setHideTocFrame($hideTocFrame)
795
    {
796
        $this->hideTocFrame = $hideTocFrame;
797
798
        return $this;
799
    }
800
801
    /**
802
     * Get hideTocFrame.
803
     *
804
     * @return bool
805
     */
806
    public function getHideTocFrame()
807
    {
808
        return $this->hideTocFrame;
809
    }
810
811
    /**
812
     * Set seriousgameMode.
813
     *
814
     * @param bool $seriousgameMode
815
     *
816
     * @return CLp
817
     */
818
    public function setSeriousgameMode($seriousgameMode)
819
    {
820
        $this->seriousgameMode = $seriousgameMode;
821
822
        return $this;
823
    }
824
825
    /**
826
     * Get seriousgameMode.
827
     *
828
     * @return bool
829
     */
830
    public function getSeriousgameMode()
831
    {
832
        return $this->seriousgameMode;
833
    }
834
835
    /**
836
     * Set useMaxScore.
837
     *
838
     * @param int $useMaxScore
839
     *
840
     * @return CLp
841
     */
842
    public function setUseMaxScore($useMaxScore)
843
    {
844
        $this->useMaxScore = $useMaxScore;
845
846
        return $this;
847
    }
848
849
    /**
850
     * Get useMaxScore.
851
     *
852
     * @return int
853
     */
854
    public function getUseMaxScore()
855
    {
856
        return $this->useMaxScore;
857
    }
858
859
    /**
860
     * Set autolaunch.
861
     *
862
     * @param int $autolaunch
863
     *
864
     * @return CLp
865
     */
866
    public function setAutolaunch($autolaunch)
867
    {
868
        $this->autolaunch = $autolaunch;
869
870
        return $this;
871
    }
872
873
    /**
874
     * Get autolaunch.
875
     *
876
     * @return int
877
     */
878
    public function getAutolaunch()
879
    {
880
        return $this->autolaunch;
881
    }
882
883
    /**
884
     * Set createdOn.
885
     *
886
     * @param \DateTime $createdOn
887
     *
888
     * @return CLp
889
     */
890
    public function setCreatedOn($createdOn)
891
    {
892
        $this->createdOn = $createdOn;
893
894
        return $this;
895
    }
896
897
    /**
898
     * Get createdOn.
899
     *
900
     * @return \DateTime
901
     */
902
    public function getCreatedOn()
903
    {
904
        return $this->createdOn;
905
    }
906
907
    /**
908
     * Set modifiedOn.
909
     *
910
     * @param \DateTime $modifiedOn
911
     *
912
     * @return CLp
913
     */
914
    public function setModifiedOn($modifiedOn)
915
    {
916
        $this->modifiedOn = $modifiedOn;
917
918
        return $this;
919
    }
920
921
    /**
922
     * Get modifiedOn.
923
     *
924
     * @return \DateTime
925
     */
926
    public function getModifiedOn()
927
    {
928
        return $this->modifiedOn;
929
    }
930
931
    /**
932
     * Set publicatedOn.
933
     *
934
     * @param \DateTime $publicatedOn
935
     *
936
     * @return CLp
937
     */
938
    public function setPublicatedOn($publicatedOn)
939
    {
940
        $this->publicatedOn = $publicatedOn;
941
942
        return $this;
943
    }
944
945
    /**
946
     * Get publicatedOn.
947
     *
948
     * @return \DateTime
949
     */
950
    public function getPublicatedOn()
951
    {
952
        return $this->publicatedOn;
953
    }
954
955
    /**
956
     * Set expiredOn.
957
     *
958
     * @param \DateTime $expiredOn
959
     *
960
     * @return CLp
961
     */
962
    public function setExpiredOn($expiredOn)
963
    {
964
        $this->expiredOn = $expiredOn;
965
966
        return $this;
967
    }
968
969
    /**
970
     * Get expiredOn.
971
     *
972
     * @return \DateTime
973
     */
974
    public function getExpiredOn()
975
    {
976
        return $this->expiredOn;
977
    }
978
979
    /**
980
     * Set cId.
981
     *
982
     * @param int $cId
983
     *
984
     * @return CLp
985
     */
986
    public function setCId($cId)
987
    {
988
        $this->cId = $cId;
989
990
        return $this;
991
    }
992
993
    /**
994
     * Get cId.
995
     *
996
     * @return int
997
     */
998
    public function getCId()
999
    {
1000
        return $this->cId;
1001
    }
1002
1003
    public function getCategory()
1004
    {
1005
        return $this->category;
1006
    }
1007
1008
    public function setCategory($category)
1009
    {
1010
        $this->category = $category;
1011
1012
        return $this;
1013
    }
1014
1015
    /**
1016
     * @return int
1017
     */
1018
    public function getAccumulateScormTime()
1019
    {
1020
        return $this->accumulateScormTime;
1021
    }
1022
1023
    /**
1024
     * @param int $accumulateScormTime
1025
     *
1026
     * @return CLp
1027
     */
1028
    public function setAccumulateScormTime($accumulateScormTime)
1029
    {
1030
        $this->accumulateScormTime = $accumulateScormTime;
1031
1032
        return $this;
1033
    }
1034
1035
    public function getAccumulateWorkTime(): int
1036
    {
1037
        return $this->accumulateWorkTime;
1038
    }
1039
1040
    public function setAccumulateWorkTime(int $accumulateWorkTime): self
1041
    {
1042
        $this->accumulateWorkTime = $accumulateWorkTime;
1043
1044
        return $this;
1045
    }
1046
1047
    /**
1048
     * Get iid.
1049
     *
1050
     * @return int
1051
     */
1052
    public function getIid()
1053
    {
1054
        return $this->iid;
1055
    }
1056
1057
    /**
1058
     * Get subscribeUsers.
1059
     *
1060
     * @return int
1061
     */
1062
    public function getSubscribeUsers()
1063
    {
1064
        return $this->subscribeUsers;
1065
    }
1066
1067
    public function setSubscribeUsers($value): self
1068
    {
1069
        $this->subscribeUsers = $value;
1070
1071
        return $this;
1072
    }
1073
1074
    public function getForum(): ?CForumForum
1075
    {
1076
        return $this->forum;
1077
    }
1078
1079
    public function hasForum(): bool
1080
    {
1081
        return null !== $this->forum;
1082
    }
1083
1084
    public function setForum(CForumForum $forum): self
1085
    {
1086
        $this->forum = $forum;
1087
1088
        return $this;
1089
    }
1090
1091
    public function getAsset(): ?Asset
1092
    {
1093
        return $this->asset;
1094
    }
1095
1096
    public function hasAsset(): bool
1097
    {
1098
        return null !== $this->asset;
1099
    }
1100
1101
    public function setAsset(?Asset $asset): self
1102
    {
1103
        $this->asset = $asset;
1104
1105
        return $this;
1106
    }
1107
1108
    public function getResourceIdentifier(): int
1109
    {
1110
        return $this->getIid();
1111
    }
1112
1113
    public function getResourceName(): string
1114
    {
1115
        return $this->getName();
1116
    }
1117
1118
    public function setResourceName(string $name): self
1119
    {
1120
        return $this->setName($name);
1121
    }
1122
}
1123