Passed
Push — master ( 39ba65...4e7d2f )
by Julito
10:09
created

CLp::getForceCommit()   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\ResourceInterface;
9
use Doctrine\Common\Collections\ArrayCollection;
10
use Doctrine\ORM\Mapping as ORM;
11
use Gedmo\Mapping\Annotation as Gedmo;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * CLp.
16
 *
17
 * @ORM\Table(
18
 *  name="c_lp"
19
 * )
20
 * @ORM\Entity
21
 */
22
class CLp extends AbstractResource implements ResourceInterface
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="lp_type", type="integer", nullable=false)
44
     */
45
    protected $lpType;
46
47
    /**
48
     * @var string
49
     * @Assert\NotBlank()
50
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
51
     */
52
    protected $name;
53
54
    /**
55
     * @var string
56
     *
57
     * @ORM\Column(name="ref", type="text", nullable=true)
58
     */
59
    protected $ref;
60
61
    /**
62
     * @var string
63
     *
64
     * @ORM\Column(name="description", type="text", nullable=true)
65
     */
66
    protected $description;
67
68
    /**
69
     * @var string
70
     *
71
     * @ORM\Column(name="path", type="text", nullable=false)
72
     */
73
    protected $path;
74
75
    /**
76
     * @var bool
77
     *
78
     * @ORM\Column(name="force_commit", type="boolean", nullable=false)
79
     */
80
    protected $forceCommit;
81
82
    /**
83
     * @var string
84
     *
85
     * @ORM\Column(name="default_view_mod", type="string", length=32, nullable=false, options={"default":"embedded"})
86
     */
87
    protected $defaultViewMod;
88
89
    /**
90
     * @var string
91
     *
92
     * @ORM\Column(name="default_encoding", type="string", length=32, nullable=false, options={"default":"UTF-8"})
93
     */
94
    protected $defaultEncoding;
95
96
    /**
97
     * @var int
98
     *
99
     * @ORM\Column(name="display_order", type="integer", nullable=false, options={"default":"0"})
100
     */
101
    protected $displayOrder;
102
103
    /**
104
     * @var string
105
     *
106
     * @ORM\Column(name="content_maker", type="text", nullable=false)
107
     */
108
    protected $contentMaker;
109
110
    /**
111
     * @var string
112
     *
113
     * @ORM\Column(name="content_local", type="string", length=32, nullable=false, options={"default":"local"})
114
     */
115
    protected $contentLocal;
116
117
    /**
118
     * @var string
119
     *
120
     * @ORM\Column(name="content_license", type="text", nullable=false)
121
     */
122
    protected $contentLicense;
123
124
    /**
125
     * @var bool
126
     *
127
     * @ORM\Column(name="prevent_reinit", type="boolean", nullable=false, options={"default":"1"})
128
     */
129
    protected $preventReinit;
130
131
    /**
132
     * @var string
133
     *
134
     * @ORM\Column(name="js_lib", type="text", nullable=false)
135
     */
136
    protected $jsLib;
137
138
    /**
139
     * @var bool
140
     *
141
     * @ORM\Column(name="debug", type="boolean", nullable=false)
142
     */
143
    protected $debug;
144
145
    /**
146
     * @var string
147
     *
148
     * @ORM\Column(name="theme", type="string", length=255, nullable=false)
149
     */
150
    protected $theme;
151
152
    /**
153
     * @var string
154
     *
155
     * @ORM\Column(name="author", type="text", nullable=false)
156
     */
157
    protected $author;
158
159
    /**
160
     * @var int
161
     *
162
     * @ORM\Column(name="session_id", type="integer", nullable=false)
163
     */
164
    protected $sessionId;
165
166
    /**
167
     * @var int
168
     *
169
     * @ORM\Column(name="prerequisite", type="integer", nullable=false)
170
     */
171
    protected $prerequisite;
172
173
    /**
174
     * @var bool
175
     *
176
     * @ORM\Column(name="hide_toc_frame", type="boolean", nullable=false)
177
     */
178
    protected $hideTocFrame;
179
180
    /**
181
     * @var bool
182
     *
183
     * @ORM\Column(name="seriousgame_mode", type="boolean", nullable=false)
184
     */
185
    protected $seriousgameMode;
186
187
    /**
188
     * @var int
189
     *
190
     * @ORM\Column(name="use_max_score", type="integer", nullable=false, options={"default":"1"})
191
     */
192
    protected $useMaxScore;
193
194
    /**
195
     * @var int
196
     *
197
     * @ORM\Column(name="autolaunch", type="integer", nullable=false)
198
     */
199
    protected $autolaunch;
200
201
    /**
202
     * @var CLpCategory|null
203
     *
204
     * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLpCategory", inversedBy="lps")
205
     * @ORM\JoinColumn(name="category_id", referencedColumnName="iid")
206
     */
207
    protected $category;
208
209
    /**
210
     * @var int
211
     *
212
     * @ORM\Column(name="max_attempts", type="integer", nullable=false)
213
     */
214
    protected $maxAttempts;
215
216
    /**
217
     * @var int
218
     *
219
     * @ORM\Column(name="subscribe_users", type="integer", nullable=false)
220
     */
221
    protected $subscribeUsers;
222
223
    /**
224
     * @var \DateTime
225
     *
226
     * @Gedmo\Timestampable(on="create")
227
     *
228
     * @ORM\Column(name="created_on", type="datetime", nullable=false)
229
     */
230
    protected $createdOn;
231
232
    /**
233
     * @var \DateTime
234
     *
235
     * @Gedmo\Timestampable(on="update")
236
     *
237
     * @ORM\Column(name="modified_on", type="datetime", nullable=false)
238
     */
239
    protected $modifiedOn;
240
241
    /**
242
     * @var \DateTime
243
     *
244
     * @ORM\Column(name="publicated_on", type="datetime", nullable=true)
245
     */
246
    protected $publicatedOn;
247
248
    /**
249
     * @var \DateTime
250
     *
251
     * @ORM\Column(name="expired_on", type="datetime", nullable=true)
252
     */
253
    protected $expiredOn;
254
255
    /**
256
     * @var int
257
     *
258
     * @ORM\Column(name="accumulate_scorm_time", type="integer", nullable=false, options={"default":1})
259
     */
260
    protected $accumulateScormTime;
261
262
    /**
263
     * @var int
264
     *
265
     * @ORM\Column(name="accumulate_work_time", type="integer", nullable=false, options={"default":0})
266
     */
267
    protected $accumulateWorkTime;
268
269
    /**
270
     * @var CLpItem[]
271
     *
272
     * @ORM\OneToMany(targetEntity="CLpItem", mappedBy="lp", cascade={"persist", "remove"}, orphanRemoval=true)
273
     */
274
    protected $items;
275
276
    /**
277
     * @var CForumForum
278
     * @ORM\OneToOne(targetEntity="Chamilo\CourseBundle\Entity\CForumForum", mappedBy="lp")
279
     */
280
    protected $forum;
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->publicatedOn = new \DateTime();
306
        $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...
307
        $this->subscribeUsers = 0;
308
        $this->useMaxScore = 1;
309
        $this->theme = '';
310
        $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...
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 author.
704
     *
705
     * @param string $author
706
     *
707
     * @return CLp
708
     */
709
    public function setAuthor($author)
710
    {
711
        $this->author = $author;
712
713
        return $this;
714
    }
715
716
    /**
717
     * Get author.
718
     *
719
     * @return string
720
     */
721
    public function getAuthor()
722
    {
723
        return $this->author;
724
    }
725
726
    /**
727
     * Set sessionId.
728
     *
729
     * @param int $sessionId
730
     *
731
     * @return CLp
732
     */
733
    public function setSessionId($sessionId)
734
    {
735
        $this->sessionId = $sessionId;
736
737
        return $this;
738
    }
739
740
    /**
741
     * Get sessionId.
742
     *
743
     * @return int
744
     */
745
    public function getSessionId()
746
    {
747
        return $this->sessionId;
748
    }
749
750
    /**
751
     * Set prerequisite.
752
     *
753
     * @param int $prerequisite
754
     *
755
     * @return CLp
756
     */
757
    public function setPrerequisite($prerequisite)
758
    {
759
        $this->prerequisite = $prerequisite;
760
761
        return $this;
762
    }
763
764
    /**
765
     * Get prerequisite.
766
     *
767
     * @return int
768
     */
769
    public function getPrerequisite()
770
    {
771
        return $this->prerequisite;
772
    }
773
774
    /**
775
     * Set hideTocFrame.
776
     *
777
     * @param bool $hideTocFrame
778
     *
779
     * @return CLp
780
     */
781
    public function setHideTocFrame($hideTocFrame)
782
    {
783
        $this->hideTocFrame = $hideTocFrame;
784
785
        return $this;
786
    }
787
788
    /**
789
     * Get hideTocFrame.
790
     *
791
     * @return bool
792
     */
793
    public function getHideTocFrame()
794
    {
795
        return $this->hideTocFrame;
796
    }
797
798
    /**
799
     * Set seriousgameMode.
800
     *
801
     * @param bool $seriousgameMode
802
     *
803
     * @return CLp
804
     */
805
    public function setSeriousgameMode($seriousgameMode)
806
    {
807
        $this->seriousgameMode = $seriousgameMode;
808
809
        return $this;
810
    }
811
812
    /**
813
     * Get seriousgameMode.
814
     *
815
     * @return bool
816
     */
817
    public function getSeriousgameMode()
818
    {
819
        return $this->seriousgameMode;
820
    }
821
822
    /**
823
     * Set useMaxScore.
824
     *
825
     * @param int $useMaxScore
826
     *
827
     * @return CLp
828
     */
829
    public function setUseMaxScore($useMaxScore)
830
    {
831
        $this->useMaxScore = $useMaxScore;
832
833
        return $this;
834
    }
835
836
    /**
837
     * Get useMaxScore.
838
     *
839
     * @return int
840
     */
841
    public function getUseMaxScore()
842
    {
843
        return $this->useMaxScore;
844
    }
845
846
    /**
847
     * Set autolaunch.
848
     *
849
     * @param int $autolaunch
850
     *
851
     * @return CLp
852
     */
853
    public function setAutolaunch($autolaunch)
854
    {
855
        $this->autolaunch = $autolaunch;
856
857
        return $this;
858
    }
859
860
    /**
861
     * Get autolaunch.
862
     *
863
     * @return int
864
     */
865
    public function getAutolaunch()
866
    {
867
        return $this->autolaunch;
868
    }
869
870
    /**
871
     * Set createdOn.
872
     *
873
     * @param \DateTime $createdOn
874
     *
875
     * @return CLp
876
     */
877
    public function setCreatedOn($createdOn)
878
    {
879
        $this->createdOn = $createdOn;
880
881
        return $this;
882
    }
883
884
    /**
885
     * Get createdOn.
886
     *
887
     * @return \DateTime
888
     */
889
    public function getCreatedOn()
890
    {
891
        return $this->createdOn;
892
    }
893
894
    /**
895
     * Set modifiedOn.
896
     *
897
     * @param \DateTime $modifiedOn
898
     *
899
     * @return CLp
900
     */
901
    public function setModifiedOn($modifiedOn)
902
    {
903
        $this->modifiedOn = $modifiedOn;
904
905
        return $this;
906
    }
907
908
    /**
909
     * Get modifiedOn.
910
     *
911
     * @return \DateTime
912
     */
913
    public function getModifiedOn()
914
    {
915
        return $this->modifiedOn;
916
    }
917
918
    /**
919
     * Set publicatedOn.
920
     *
921
     * @param \DateTime $publicatedOn
922
     *
923
     * @return CLp
924
     */
925
    public function setPublicatedOn($publicatedOn)
926
    {
927
        $this->publicatedOn = $publicatedOn;
928
929
        return $this;
930
    }
931
932
    /**
933
     * Get publicatedOn.
934
     *
935
     * @return \DateTime
936
     */
937
    public function getPublicatedOn()
938
    {
939
        return $this->publicatedOn;
940
    }
941
942
    /**
943
     * Set expiredOn.
944
     *
945
     * @param \DateTime $expiredOn
946
     *
947
     * @return CLp
948
     */
949
    public function setExpiredOn($expiredOn)
950
    {
951
        $this->expiredOn = $expiredOn;
952
953
        return $this;
954
    }
955
956
    /**
957
     * Get expiredOn.
958
     *
959
     * @return \DateTime
960
     */
961
    public function getExpiredOn()
962
    {
963
        return $this->expiredOn;
964
    }
965
966
    /**
967
     * Set cId.
968
     *
969
     * @param int $cId
970
     *
971
     * @return CLp
972
     */
973
    public function setCId($cId)
974
    {
975
        $this->cId = $cId;
976
977
        return $this;
978
    }
979
980
    /**
981
     * Get cId.
982
     *
983
     * @return int
984
     */
985
    public function getCId()
986
    {
987
        return $this->cId;
988
    }
989
990
    public function getCategory()
991
    {
992
        return $this->category;
993
    }
994
995
    public function setCategory($category)
996
    {
997
        $this->category = $category;
998
999
        return $this;
1000
    }
1001
1002
    /**
1003
     * @return int
1004
     */
1005
    public function getAccumulateScormTime()
1006
    {
1007
        return $this->accumulateScormTime;
1008
    }
1009
1010
    /**
1011
     * @param int $accumulateScormTime
1012
     *
1013
     * @return CLp
1014
     */
1015
    public function setAccumulateScormTime($accumulateScormTime)
1016
    {
1017
        $this->accumulateScormTime = $accumulateScormTime;
1018
1019
        return $this;
1020
    }
1021
1022
    public function getAccumulateWorkTime(): int
1023
    {
1024
        return $this->accumulateWorkTime;
1025
    }
1026
1027
    public function setAccumulateWorkTime(int $accumulateWorkTime): self
1028
    {
1029
        $this->accumulateWorkTime = $accumulateWorkTime;
1030
1031
        return $this;
1032
    }
1033
1034
    /**
1035
     * Get iid.
1036
     *
1037
     * @return int
1038
     */
1039
    public function getIid()
1040
    {
1041
        return $this->iid;
1042
    }
1043
1044
    /**
1045
     * Get subscribeUsers.
1046
     *
1047
     * @return int
1048
     */
1049
    public function getSubscribeUsers()
1050
    {
1051
        return $this->subscribeUsers;
1052
    }
1053
1054
    public function setSubscribeUsers($value): self
1055
    {
1056
        $this->subscribeUsers = $value;
1057
1058
        return $this;
1059
    }
1060
1061
    public function getForum(): ?CForumForum
1062
    {
1063
        return $this->forum;
1064
    }
1065
1066
    public function hasForum(): bool
1067
    {
1068
        return null !== $this->forum;
1069
    }
1070
1071
    public function setForum(CForumForum $forum): self
1072
    {
1073
        $this->forum = $forum;
1074
1075
        return $this;
1076
    }
1077
1078
    public function getResourceIdentifier(): int
1079
    {
1080
        return $this->getIid();
1081
    }
1082
1083
    public function getResourceName(): string
1084
    {
1085
        return $this->getName();
1086
    }
1087
1088
    public function setResourceName(string $name): self
1089
    {
1090
        return $this->setName($name);
1091
    }
1092
}
1093