Completed
Push — master ( db9c88...be5baf )
by Julito
14:58
created

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