Skip to content

Commit b0ef86c

Browse files
committed
changed case of folders
1 parent d2854a7 commit b0ef86c

File tree

8 files changed

+279
-0
lines changed

8 files changed

+279
-0
lines changed

src/Entity/Attendee.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Entity;
4+
5+
6+
class Attendee extends EntityAbstract
7+
{
8+
9+
public $firstName;
10+
11+
public $lastName;
12+
13+
public $email;
14+
15+
public $organization;
16+
17+
18+
public function __construct($parameterArray = null)
19+
{
20+
if (isset($parameterArray) && is_array($parameterArray)) {
21+
22+
$this->setFirstName($parameterArray[ 'firstname' ]);
23+
$this->setLastName($parameterArray[ 'lastname' ]);
24+
$this->setEmail($parameterArray[ 'email' ]);
25+
(isset($parameterArray[ 'organization' ]) ? $this->setOrganization($parameterArray[ 'organization' ]) : null);
26+
27+
}
28+
}
29+
30+
31+
public function setFirstName($firstname)
32+
{
33+
$this->firstName = $firstname;
34+
}
35+
36+
37+
public function setLastName($lastname)
38+
{
39+
$this->lastName = $lastname;
40+
}
41+
42+
43+
public function setEmail($email)
44+
{
45+
$this->email = $email;
46+
}
47+
48+
49+
public function setOrganization($organization)
50+
{
51+
$this->organization = $organization;
52+
}
53+
54+
}

src/Entity/EntityAbstract.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Entity;
4+
5+
6+
class EntityAbstract
7+
{
8+
9+
public function toArray()
10+
{
11+
//list of variables to be skipped
12+
$toUnset = [
13+
14+
'webinarKey',
15+
'registrationUrl',
16+
'participants',
17+
18+
];
19+
20+
$toArray = get_object_vars($this);
21+
22+
foreach ($toUnset as $value) {
23+
24+
if (isset($toArray[ $value ])) {
25+
unset($toArray[ $value ]);
26+
}
27+
28+
}
29+
30+
return $toArray;
31+
}
32+
33+
}

src/Entity/Time.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Entity;
4+
5+
6+
class Time extends EntityAbstract
7+
{
8+
9+
public $startTime;
10+
11+
public $endTime;
12+
13+
14+
public function __construct($startTime, $endTime)
15+
{
16+
$this->setStart($startTime);
17+
$this->setEnd($endTime);
18+
}
19+
20+
21+
public function setStart($startTime)
22+
{
23+
$this->startTime = $startTime;
24+
}
25+
26+
27+
public function setEnd($endTime)
28+
{
29+
$this->endTime = $endTime;
30+
}
31+
}

src/Entity/Webinar.php

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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+
}

src/Exception/CitrixException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Exception;
4+
5+
6+
class CitrixException extends \Exception implements ExceptionInterface
7+
{
8+
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Exception;
4+
5+
interface ExceptionInterface
6+
{
7+
8+
}

src/Facade/GotoMeeting.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Facade;
4+
5+
use Slakbal\Citrix\Meeting;
6+
use Illuminate\Support\Facades\Facade;
7+
8+
class GotoMeeting extends Facade
9+
{
10+
11+
protected static function getFacadeAccessor()
12+
{
13+
return Meeting::class;
14+
}
15+
}

src/Facade/GotoWebinar.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Slakbal\Citrix\Facade;
4+
5+
use Slakbal\Citrix\Webinar;
6+
use Illuminate\Support\Facades\Facade;
7+
8+
class GotoWebinar extends Facade
9+
{
10+
11+
protected static function getFacadeAccessor()
12+
{
13+
return Webinar::class;
14+
}
15+
}

0 commit comments

Comments
 (0)