Passed
Push — master ( 58448b...8ed61e )
by Julito
09:32
created

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