Passed
Push — master ( 54bad5...486a74 )
by Julito
13:01 queued 15s
created

CLp::getAuthor()   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\Resource\AbstractResource;
8
use Chamilo\CoreBundle\Entity\Resource\ResourceInterface;
9
use Doctrine\ORM\Mapping as ORM;
10
11
/**
12
 * CLp.
13
 *
14
 * @ORM\Table(
15
 *  name="c_lp",
16
 *  indexes={
17
 *      @ORM\Index(name="course", columns={"c_id"}),
18
 *     @ORM\Index(name="session", columns={"session_id"})
19
 *  }
20
 * )
21
 * @ORM\Entity
22
 */
23
class CLp extends AbstractResource implements ResourceInterface
24
{
25
    /**
26
     * @var int
27
     *
28
     * @ORM\Column(name="iid", type="integer")
29
     * @ORM\Id
30
     * @ORM\GeneratedValue
31
     */
32
    protected $iid;
33
34
    /**
35
     * @var int
36
     *
37
     * @ORM\Column(name="c_id", type="integer")
38
     */
39
    protected $cId;
40
41
    /**
42
     * @var int
43
     *
44
     * @ORM\Column(name="id", type="integer", nullable=true)
45
     */
46
    protected $id;
47
48
    /**
49
     * @var int
50
     *
51
     * @ORM\Column(name="lp_type", type="integer", nullable=false)
52
     */
53
    protected $lpType;
54
55
    /**
56
     * @var string
57
     *
58
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
59
     */
60
    protected $name;
61
62
    /**
63
     * @var string
64
     *
65
     * @ORM\Column(name="ref", type="text", nullable=true)
66
     */
67
    protected $ref;
68
69
    /**
70
     * @var string
71
     *
72
     * @ORM\Column(name="description", type="text", nullable=true)
73
     */
74
    protected $description;
75
76
    /**
77
     * @var string
78
     *
79
     * @ORM\Column(name="path", type="text", nullable=false)
80
     */
81
    protected $path;
82
83
    /**
84
     * @var bool
85
     *
86
     * @ORM\Column(name="force_commit", type="boolean", nullable=false)
87
     */
88
    protected $forceCommit;
89
90
    /**
91
     * @var string
92
     *
93
     * @ORM\Column(name="default_view_mod", type="string", length=32, nullable=false, options={"default":"embedded"})
94
     */
95
    protected $defaultViewMod;
96
97
    /**
98
     * @var string
99
     *
100
     * @ORM\Column(name="default_encoding", type="string", length=32, nullable=false, options={"default":"UTF-8"})
101
     */
102
    protected $defaultEncoding;
103
104
    /**
105
     * @var int
106
     *
107
     * @ORM\Column(name="display_order", type="integer", nullable=false, options={"default":"0"})
108
     */
109
    protected $displayOrder;
110
111
    /**
112
     * @var string
113
     *
114
     * @ORM\Column(name="content_maker", type="text", nullable=false)
115
     */
116
    protected $contentMaker;
117
118
    /**
119
     * @var string
120
     *
121
     * @ORM\Column(name="content_local", type="string", length=32, nullable=false, options={"default":"local"})
122
     */
123
    protected $contentLocal;
124
125
    /**
126
     * @var string
127
     *
128
     * @ORM\Column(name="content_license", type="text", nullable=false)
129
     */
130
    protected $contentLicense;
131
132
    /**
133
     * @var bool
134
     *
135
     * @ORM\Column(name="prevent_reinit", type="boolean", nullable=false, options={"default":"1"})
136
     */
137
    protected $preventReinit;
138
139
    /**
140
     * @var string
141
     *
142
     * @ORM\Column(name="js_lib", type="text", nullable=false)
143
     */
144
    protected $jsLib;
145
146
    /**
147
     * @var bool
148
     *
149
     * @ORM\Column(name="debug", type="boolean", nullable=false)
150
     */
151
    protected $debug;
152
153
    /**
154
     * @var string
155
     *
156
     * @ORM\Column(name="theme", type="string", length=255, nullable=false)
157
     */
158
    protected $theme;
159
160
    /**
161
     * @var string
162
     *
163
     * @ORM\Column(name="preview_image", type="string", length=255, nullable=false)
164
     */
165
    protected $previewImage;
166
167
    /**
168
     * @var string
169
     *
170
     * @ORM\Column(name="author", type="text", nullable=false)
171
     */
172
    protected $author;
173
174
    /**
175
     * @var int
176
     *
177
     * @ORM\Column(name="session_id", type="integer", nullable=false)
178
     */
179
    protected $sessionId;
180
181
    /**
182
     * @var int
183
     *
184
     * @ORM\Column(name="prerequisite", type="integer", nullable=false)
185
     */
186
    protected $prerequisite;
187
188
    /**
189
     * @var bool
190
     *
191
     * @ORM\Column(name="hide_toc_frame", type="boolean", nullable=false)
192
     */
193
    protected $hideTocFrame;
194
195
    /**
196
     * @var bool
197
     *
198
     * @ORM\Column(name="seriousgame_mode", type="boolean", nullable=false)
199
     */
200
    protected $seriousgameMode;
201
202
    /**
203
     * @var int
204
     *
205
     * @ORM\Column(name="use_max_score", type="integer", nullable=false, options={"default":"1"})
206
     */
207
    protected $useMaxScore;
208
209
    /**
210
     * @var int
211
     *
212
     * @ORM\Column(name="autolaunch", type="integer", nullable=false)
213
     */
214
    protected $autolaunch;
215
216
    /**
217
     * @var int
218
     *
219
     * @ORM\Column(name="category_id", type="integer", nullable=false, unique=false)
220
     */
221
    protected $categoryId;
222
223
    /**
224
     * @var int
225
     *
226
     * @ORM\Column(name="max_attempts", type="integer", nullable=false)
227
     */
228
    protected $maxAttempts;
229
230
    /**
231
     * @var int
232
     *
233
     * @ORM\Column(name="subscribe_users", type="integer", nullable=false)
234
     */
235
    protected $subscribeUsers;
236
237
    /**
238
     * @var \DateTime
239
     *
240
     * @ORM\Column(name="created_on", type="datetime", nullable=false)
241
     */
242
    protected $createdOn;
243
244
    /**
245
     * @var \DateTime
246
     *
247
     * @ORM\Column(name="modified_on", type="datetime", nullable=false)
248
     */
249
    protected $modifiedOn;
250
251
    /**
252
     * @var \DateTime
253
     *
254
     * @ORM\Column(name="publicated_on", type="datetime", nullable=true)
255
     */
256
    protected $publicatedOn;
257
258
    /**
259
     * @var \DateTime
260
     *
261
     * @ORM\Column(name="expired_on", type="datetime", nullable=true)
262
     */
263
    protected $expiredOn;
264
265
    /**
266
     * @var int
267
     *
268
     * @ORM\Column(name="accumulate_scorm_time", type="integer", nullable=false, options={"default":1})
269
     */
270
    protected $accumulateScormTime;
271
272
    /**
273
     * @var int
274
     *
275
     * @ORM\Column(name="accumulate_work_time", type="integer", nullable=false, options={"default":0})
276
     */
277
    protected $accumulateWorkTime;
278
279
    /**
280
     * Constructor.
281
     */
282
    public function __construct()
283
    {
284
        $this->accumulateScormTime = 1;
285
        $this->accumulateWorkTime = 0;
286
        $this->author = '';
287
        $this->autolaunch = 0;
288
        $this->contentLocal = 'local';
289
        $this->contentMaker = 'chamilo';
290
        $this->contentLicense = '';
291
        $this->createdOn = new \DateTime();
292
        $this->modifiedOn = new \DateTime();
293
        $this->defaultEncoding = 'UTF-8';
294
        $this->defaultViewMod = 'embedded';
295
        $this->description = '';
296
        $this->displayOrder = 0;
297
        $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...
298
        $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...
299
        $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...
300
        $this->jsLib = '';
301
        $this->maxAttempts = 0;
302
        $this->preventReinit = true;
303
        $this->path = '';
304
        $this->prerequisite = 0;
305
        $this->previewImage = '';
306
        $this->publicatedOn = new \DateTime();
307
        $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...
308
        $this->subscribeUsers = 0;
309
        $this->useMaxScore = 1;
310
        $this->theme = '';
311
    }
312
313
    public function __toString(): string
314
    {
315
        return $this->getName();
316
    }
317
318
    /**
319
     * Set lpType.
320
     *
321
     * @param int $lpType
322
     *
323
     * @return CLp
324
     */
325
    public function setLpType($lpType)
326
    {
327
        $this->lpType = $lpType;
328
329
        return $this;
330
    }
331
332
    /**
333
     * Get lpType.
334
     *
335
     * @return int
336
     */
337
    public function getLpType()
338
    {
339
        return $this->lpType;
340
    }
341
342
    /**
343
     * Set name.
344
     *
345
     * @param string $name
346
     *
347
     * @return CLp
348
     */
349
    public function setName($name)
350
    {
351
        $this->name = $name;
352
353
        return $this;
354
    }
355
356
    /**
357
     * Get name.
358
     *
359
     * @return string
360
     */
361
    public function getName()
362
    {
363
        return (string) $this->name;
364
    }
365
366
    /**
367
     * Set ref.
368
     *
369
     * @param string $ref
370
     *
371
     * @return CLp
372
     */
373
    public function setRef($ref)
374
    {
375
        $this->ref = $ref;
376
377
        return $this;
378
    }
379
380
    /**
381
     * Get ref.
382
     *
383
     * @return string
384
     */
385
    public function getRef()
386
    {
387
        return $this->ref;
388
    }
389
390
    /**
391
     * Set description.
392
     *
393
     * @param string $description
394
     *
395
     * @return CLp
396
     */
397
    public function setDescription($description)
398
    {
399
        $this->description = $description;
400
401
        return $this;
402
    }
403
404
    /**
405
     * Get description.
406
     *
407
     * @return string
408
     */
409
    public function getDescription()
410
    {
411
        return $this->description;
412
    }
413
414
    /**
415
     * Set path.
416
     *
417
     * @param string $path
418
     *
419
     * @return CLp
420
     */
421
    public function setPath($path)
422
    {
423
        $this->path = $path;
424
425
        return $this;
426
    }
427
428
    /**
429
     * Get path.
430
     *
431
     * @return string
432
     */
433
    public function getPath()
434
    {
435
        return $this->path;
436
    }
437
438
    /**
439
     * Set forceCommit.
440
     *
441
     * @param bool $forceCommit
442
     *
443
     * @return CLp
444
     */
445
    public function setForceCommit($forceCommit)
446
    {
447
        $this->forceCommit = $forceCommit;
448
449
        return $this;
450
    }
451
452
    /**
453
     * Get forceCommit.
454
     *
455
     * @return bool
456
     */
457
    public function getForceCommit()
458
    {
459
        return $this->forceCommit;
460
    }
461
462
    /**
463
     * Set defaultViewMod.
464
     *
465
     * @param string $defaultViewMod
466
     *
467
     * @return CLp
468
     */
469
    public function setDefaultViewMod($defaultViewMod)
470
    {
471
        $this->defaultViewMod = $defaultViewMod;
472
473
        return $this;
474
    }
475
476
    /**
477
     * Get defaultViewMod.
478
     *
479
     * @return string
480
     */
481
    public function getDefaultViewMod()
482
    {
483
        return $this->defaultViewMod;
484
    }
485
486
    /**
487
     * Set defaultEncoding.
488
     *
489
     * @param string $defaultEncoding
490
     *
491
     * @return CLp
492
     */
493
    public function setDefaultEncoding($defaultEncoding)
494
    {
495
        $this->defaultEncoding = $defaultEncoding;
496
497
        return $this;
498
    }
499
500
    /**
501
     * Get defaultEncoding.
502
     *
503
     * @return string
504
     */
505
    public function getDefaultEncoding()
506
    {
507
        return $this->defaultEncoding;
508
    }
509
510
    /**
511
     * Set displayOrder.
512
     *
513
     * @param int $displayOrder
514
     *
515
     * @return CLp
516
     */
517
    public function setDisplayOrder($displayOrder)
518
    {
519
        $this->displayOrder = $displayOrder;
520
521
        return $this;
522
    }
523
524
    /**
525
     * Get displayOrder.
526
     *
527
     * @return int
528
     */
529
    public function getDisplayOrder()
530
    {
531
        return $this->displayOrder;
532
    }
533
534
    /**
535
     * Set contentMaker.
536
     *
537
     * @param string $contentMaker
538
     *
539
     * @return CLp
540
     */
541
    public function setContentMaker($contentMaker)
542
    {
543
        $this->contentMaker = $contentMaker;
544
545
        return $this;
546
    }
547
548
    /**
549
     * Get contentMaker.
550
     *
551
     * @return string
552
     */
553
    public function getContentMaker()
554
    {
555
        return $this->contentMaker;
556
    }
557
558
    /**
559
     * Set contentLocal.
560
     *
561
     * @param string $contentLocal
562
     *
563
     * @return CLp
564
     */
565
    public function setContentLocal($contentLocal)
566
    {
567
        $this->contentLocal = $contentLocal;
568
569
        return $this;
570
    }
571
572
    /**
573
     * Get contentLocal.
574
     *
575
     * @return string
576
     */
577
    public function getContentLocal()
578
    {
579
        return $this->contentLocal;
580
    }
581
582
    /**
583
     * Set contentLicense.
584
     *
585
     * @param string $contentLicense
586
     *
587
     * @return CLp
588
     */
589
    public function setContentLicense($contentLicense)
590
    {
591
        $this->contentLicense = $contentLicense;
592
593
        return $this;
594
    }
595
596
    /**
597
     * Get contentLicense.
598
     *
599
     * @return string
600
     */
601
    public function getContentLicense()
602
    {
603
        return $this->contentLicense;
604
    }
605
606
    /**
607
     * Set preventReinit.
608
     *
609
     * @param bool $preventReinit
610
     *
611
     * @return CLp
612
     */
613
    public function setPreventReinit($preventReinit)
614
    {
615
        $this->preventReinit = $preventReinit;
616
617
        return $this;
618
    }
619
620
    /**
621
     * Get preventReinit.
622
     *
623
     * @return bool
624
     */
625
    public function getPreventReinit()
626
    {
627
        return $this->preventReinit;
628
    }
629
630
    /**
631
     * Set jsLib.
632
     *
633
     * @param string $jsLib
634
     *
635
     * @return CLp
636
     */
637
    public function setJsLib($jsLib)
638
    {
639
        $this->jsLib = $jsLib;
640
641
        return $this;
642
    }
643
644
    /**
645
     * Get jsLib.
646
     *
647
     * @return string
648
     */
649
    public function getJsLib()
650
    {
651
        return $this->jsLib;
652
    }
653
654
    /**
655
     * Set debug.
656
     *
657
     * @param bool $debug
658
     *
659
     * @return CLp
660
     */
661
    public function setDebug($debug)
662
    {
663
        $this->debug = $debug;
664
665
        return $this;
666
    }
667
668
    /**
669
     * Get debug.
670
     *
671
     * @return bool
672
     */
673
    public function getDebug()
674
    {
675
        return $this->debug;
676
    }
677
678
    /**
679
     * Set theme.
680
     *
681
     * @param string $theme
682
     *
683
     * @return CLp
684
     */
685
    public function setTheme($theme)
686
    {
687
        $this->theme = $theme;
688
689
        return $this;
690
    }
691
692
    /**
693
     * Get theme.
694
     *
695
     * @return string
696
     */
697
    public function getTheme()
698
    {
699
        return $this->theme;
700
    }
701
702
    /**
703
     * Set previewImage.
704
     *
705
     * @param string $previewImage
706
     *
707
     * @return CLp
708
     */
709
    public function setPreviewImage($previewImage)
710
    {
711
        $this->previewImage = $previewImage;
712
713
        return $this;
714
    }
715
716
    /**
717
     * Get previewImage.
718
     *
719
     * @return string
720
     */
721
    public function getPreviewImage()
722
    {
723
        return $this->previewImage;
724
    }
725
726
    /**
727
     * Set author.
728
     *
729
     * @param string $author
730
     *
731
     * @return CLp
732
     */
733
    public function setAuthor($author)
734
    {
735
        $this->author = $author;
736
737
        return $this;
738
    }
739
740
    /**
741
     * Get author.
742
     *
743
     * @return string
744
     */
745
    public function getAuthor()
746
    {
747
        return $this->author;
748
    }
749
750
    /**
751
     * Set sessionId.
752
     *
753
     * @param int $sessionId
754
     *
755
     * @return CLp
756
     */
757
    public function setSessionId($sessionId)
758
    {
759
        $this->sessionId = $sessionId;
760
761
        return $this;
762
    }
763
764
    /**
765
     * Get sessionId.
766
     *
767
     * @return int
768
     */
769
    public function getSessionId()
770
    {
771
        return $this->sessionId;
772
    }
773
774
    /**
775
     * Set prerequisite.
776
     *
777
     * @param int $prerequisite
778
     *
779
     * @return CLp
780
     */
781
    public function setPrerequisite($prerequisite)
782
    {
783
        $this->prerequisite = $prerequisite;
784
785
        return $this;
786
    }
787
788
    /**
789
     * Get prerequisite.
790
     *
791
     * @return int
792
     */
793
    public function getPrerequisite()
794
    {
795
        return $this->prerequisite;
796
    }
797
798
    /**
799
     * Set hideTocFrame.
800
     *
801
     * @param bool $hideTocFrame
802
     *
803
     * @return CLp
804
     */
805
    public function setHideTocFrame($hideTocFrame)
806
    {
807
        $this->hideTocFrame = $hideTocFrame;
808
809
        return $this;
810
    }
811
812
    /**
813
     * Get hideTocFrame.
814
     *
815
     * @return bool
816
     */
817
    public function getHideTocFrame()
818
    {
819
        return $this->hideTocFrame;
820
    }
821
822
    /**
823
     * Set seriousgameMode.
824
     *
825
     * @param bool $seriousgameMode
826
     *
827
     * @return CLp
828
     */
829
    public function setSeriousgameMode($seriousgameMode)
830
    {
831
        $this->seriousgameMode = $seriousgameMode;
832
833
        return $this;
834
    }
835
836
    /**
837
     * Get seriousgameMode.
838
     *
839
     * @return bool
840
     */
841
    public function getSeriousgameMode()
842
    {
843
        return $this->seriousgameMode;
844
    }
845
846
    /**
847
     * Set useMaxScore.
848
     *
849
     * @param int $useMaxScore
850
     *
851
     * @return CLp
852
     */
853
    public function setUseMaxScore($useMaxScore)
854
    {
855
        $this->useMaxScore = $useMaxScore;
856
857
        return $this;
858
    }
859
860
    /**
861
     * Get useMaxScore.
862
     *
863
     * @return int
864
     */
865
    public function getUseMaxScore()
866
    {
867
        return $this->useMaxScore;
868
    }
869
870
    /**
871
     * Set autolaunch.
872
     *
873
     * @param int $autolaunch
874
     *
875
     * @return CLp
876
     */
877
    public function setAutolaunch($autolaunch)
878
    {
879
        $this->autolaunch = $autolaunch;
880
881
        return $this;
882
    }
883
884
    /**
885
     * Get autolaunch.
886
     *
887
     * @return int
888
     */
889
    public function getAutolaunch()
890
    {
891
        return $this->autolaunch;
892
    }
893
894
    /**
895
     * Set createdOn.
896
     *
897
     * @param \DateTime $createdOn
898
     *
899
     * @return CLp
900
     */
901
    public function setCreatedOn($createdOn)
902
    {
903
        $this->createdOn = $createdOn;
904
905
        return $this;
906
    }
907
908
    /**
909
     * Get createdOn.
910
     *
911
     * @return \DateTime
912
     */
913
    public function getCreatedOn()
914
    {
915
        return $this->createdOn;
916
    }
917
918
    /**
919
     * Set modifiedOn.
920
     *
921
     * @param \DateTime $modifiedOn
922
     *
923
     * @return CLp
924
     */
925
    public function setModifiedOn($modifiedOn)
926
    {
927
        $this->modifiedOn = $modifiedOn;
928
929
        return $this;
930
    }
931
932
    /**
933
     * Get modifiedOn.
934
     *
935
     * @return \DateTime
936
     */
937
    public function getModifiedOn()
938
    {
939
        return $this->modifiedOn;
940
    }
941
942
    /**
943
     * Set publicatedOn.
944
     *
945
     * @param \DateTime $publicatedOn
946
     *
947
     * @return CLp
948
     */
949
    public function setPublicatedOn($publicatedOn)
950
    {
951
        $this->publicatedOn = $publicatedOn;
952
953
        return $this;
954
    }
955
956
    /**
957
     * Get publicatedOn.
958
     *
959
     * @return \DateTime
960
     */
961
    public function getPublicatedOn()
962
    {
963
        return $this->publicatedOn;
964
    }
965
966
    /**
967
     * Set expiredOn.
968
     *
969
     * @param \DateTime $expiredOn
970
     *
971
     * @return CLp
972
     */
973
    public function setExpiredOn($expiredOn)
974
    {
975
        $this->expiredOn = $expiredOn;
976
977
        return $this;
978
    }
979
980
    /**
981
     * Get expiredOn.
982
     *
983
     * @return \DateTime
984
     */
985
    public function getExpiredOn()
986
    {
987
        return $this->expiredOn;
988
    }
989
990
    /**
991
     * Set id.
992
     *
993
     * @param int $id
994
     *
995
     * @return CLp
996
     */
997
    public function setId($id)
998
    {
999
        $this->id = $id;
1000
1001
        return $this;
1002
    }
1003
1004
    /**
1005
     * Get id.
1006
     *
1007
     * @return int
1008
     */
1009
    public function getId()
1010
    {
1011
        return $this->id;
1012
    }
1013
1014
    /**
1015
     * Set cId.
1016
     *
1017
     * @param int $cId
1018
     *
1019
     * @return CLp
1020
     */
1021
    public function setCId($cId)
1022
    {
1023
        $this->cId = $cId;
1024
1025
        return $this;
1026
    }
1027
1028
    /**
1029
     * Get cId.
1030
     *
1031
     * @return int
1032
     */
1033
    public function getCId()
1034
    {
1035
        return $this->cId;
1036
    }
1037
1038
    /**
1039
     * @return int
1040
     */
1041
    public function getCategoryId()
1042
    {
1043
        return $this->categoryId;
1044
    }
1045
1046
    /**
1047
     * @param int $categoryId
1048
     *
1049
     * @return CLp
1050
     */
1051
    public function setCategoryId($categoryId)
1052
    {
1053
        $this->categoryId = $categoryId;
1054
1055
        return $this;
1056
    }
1057
1058
    /**
1059
     * @return int
1060
     */
1061
    public function getAccumulateScormTime()
1062
    {
1063
        return $this->accumulateScormTime;
1064
    }
1065
1066
    /**
1067
     * @param int $accumulateScormTime
1068
     *
1069
     * @return CLp
1070
     */
1071
    public function setAccumulateScormTime($accumulateScormTime)
1072
    {
1073
        $this->accumulateScormTime = $accumulateScormTime;
1074
1075
        return $this;
1076
    }
1077
1078
    public function getAccumulateWorkTime(): int
1079
    {
1080
        return $this->accumulateWorkTime;
1081
    }
1082
1083
    public function setAccumulateWorkTime(int $accumulateWorkTime): self
1084
    {
1085
        $this->accumulateWorkTime = $accumulateWorkTime;
1086
1087
        return $this;
1088
    }
1089
1090
    /**
1091
     * Get iid.
1092
     *
1093
     * @return int
1094
     */
1095
    public function getIid()
1096
    {
1097
        return $this->iid;
1098
    }
1099
1100
    /**
1101
     * Get subscribeUsers.
1102
     *
1103
     * @return int
1104
     */
1105
    public function getSubscribeUsers()
1106
    {
1107
        return $this->subscribeUsers;
1108
    }
1109
1110
    /**
1111
     * Resource identifier.
1112
     */
1113
    public function getResourceIdentifier(): int
1114
    {
1115
        return $this->getIid();
1116
    }
1117
1118
    public function getResourceName(): string
1119
    {
1120
        return $this->getName();
1121
    }
1122
}
1123