1
+ <?php
2
+
3
+ namespace Slakbal \Citrix \Entity ;
4
+
5
+
6
+ class Webinar extends EntityAbstract
7
+ {
8
+
9
+ public $ subject ;
10
+ public $ description ;
11
+ public $ times = [];
12
+ public $ timezone = 'Europe/Berlin ' ;
13
+ private $ webinarKey ;
14
+ private $ registrationUrl ;
15
+ private $ participants ;
16
+
17
+
18
+ public function __construct ($ parameterArray = null )
19
+ {
20
+ if (isset ($ parameterArray ) && is_array ($ parameterArray )) {
21
+
22
+ $ this ->setSubject ($ parameterArray [ 'subject ' ]);
23
+ (isset ($ parameterArray [ 'description ' ]) ? $ this ->setDescription ($ parameterArray [ 'description ' ]) : null );
24
+ $ this ->setTimes (new Time ($ parameterArray [ 'startTime ' ], $ parameterArray [ 'endTime ' ]));
25
+ (isset ($ parameterArray [ 'timezone ' ]) ? $ this ->setTimezone ($ parameterArray [ 'timezone ' ]) : null );
26
+
27
+ }
28
+ }
29
+
30
+
31
+ public function getSubject ()
32
+ {
33
+ return $ this ->subject ;
34
+ }
35
+
36
+
37
+ public function setSubject ($ subject )
38
+ {
39
+ $ this ->subject = $ subject ;
40
+ }
41
+
42
+
43
+ public function getDescription ()
44
+ {
45
+ return $ this ->description ;
46
+ }
47
+
48
+
49
+ public function setDescription ($ description )
50
+ {
51
+ $ this ->description = $ description ;
52
+ }
53
+
54
+
55
+ public function getTimezone ()
56
+ {
57
+ return $ this ->timezone ;
58
+ }
59
+
60
+
61
+ public function setTimezone ($ timezone )
62
+ {
63
+ $ this ->timezone = $ timezone ;
64
+ }
65
+
66
+
67
+ public function getTimes ()
68
+ {
69
+ return $ this ->times ;
70
+ }
71
+
72
+
73
+ public function setTimes ($ timeObject )
74
+ {
75
+ $ this ->times [] = $ timeObject ;
76
+ }
77
+
78
+
79
+ public function getRegistrationURL ()
80
+ {
81
+ return $ this ->registrationUrl ;
82
+ }
83
+
84
+
85
+ public function setRegistrationURL ($ url )
86
+ {
87
+ $ this ->registrationUrl = $ url ;
88
+ }
89
+
90
+
91
+ public function getParticipants ()
92
+ {
93
+ return $ this ->participants ;
94
+ }
95
+
96
+
97
+ public function setParticipants ($ participants )
98
+ {
99
+ $ this ->participants = $ participants ;
100
+ }
101
+
102
+
103
+ public function getWebinarKey ()
104
+ {
105
+ return $ this ->webinarKey ;
106
+ }
107
+
108
+
109
+ public function setWebinarKey ($ webinarKey )
110
+ {
111
+ $ this ->webinarKey = $ webinarKey ;
112
+ }
113
+
114
+ }
0 commit comments