33/*
44 * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55 *
6- * Copyright (c) 2016-2022 BigBlueButton Inc. and by respective authors (see below).
6+ * Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
77 *
88 * This program is free software; you can redistribute it and/or modify it under the
99 * terms of the GNU Lesser General Public License as published by the Free Software
4949use BigBlueButton \Responses \PublishRecordingsResponse ;
5050use BigBlueButton \Responses \UpdateRecordingsResponse ;
5151use BigBlueButton \Util \UrlBuilder ;
52- use SimpleXMLElement ;
5352
5453/**
5554 * Class BigBlueButton.
@@ -61,7 +60,7 @@ class BigBlueButton
6160 protected $ urlBuilder ;
6261 protected $ jSessionId ;
6362 protected $ curlopts = [];
64- protected $ timeOut = 10 ;
63+ protected $ timeOut = 10 ;
6564
6665 /**
6766 * BigBlueButton constructor.
@@ -81,9 +80,9 @@ public function __construct($baseUrl = null, $secret = null, $opts = null)
8180 }
8281
8382 /**
84- * @throws \RuntimeException
85- *
8683 * @return ApiVersionResponse
84+ *
85+ * @throws \RuntimeException
8786 */
8887 public function getApiVersion ()
8988 {
@@ -113,9 +112,9 @@ public function getCreateMeetingUrl($createMeetingParams)
113112 /**
114113 * @param CreateMeetingParameters $createMeetingParams
115114 *
116- * @throws \RuntimeException
117- *
118115 * @return CreateMeetingResponse
116+ *
117+ * @throws \RuntimeException
119118 */
120119 public function createMeeting ($ createMeetingParams )
121120 {
@@ -137,9 +136,9 @@ public function getJoinMeetingURL($joinMeetingParams)
137136 /**
138137 * @param $joinMeetingParams JoinMeetingParameters
139138 *
140- * @throws \RuntimeException
141- *
142139 * @return JoinMeetingResponse
140+ *
141+ * @throws \RuntimeException
143142 */
144143 public function joinMeeting ($ joinMeetingParams )
145144 {
@@ -161,9 +160,10 @@ public function getEndMeetingURL($endParams)
161160 /**
162161 * @param $endParams EndMeetingParameters
163162 *
163+ * @return EndMeetingResponse
164+ *
164165 * @throws \RuntimeException
165166 *
166- * @return EndMeetingResponse
167167 * */
168168 public function endMeeting ($ endParams )
169169 {
@@ -185,9 +185,9 @@ public function getInsertDocumentUrl($createMeetingParams)
185185 /**
186186 * @param InsertDocumentParameters $insertDocumentParams
187187 *
188- * @throws \RuntimeException
189- *
190188 * @return InsertDocumentResponse
189+ *
190+ * @throws \RuntimeException
191191 */
192192 public function insertDocument ($ insertDocumentParams )
193193 {
@@ -214,11 +214,11 @@ public function getIsMeetingRunningUrl($meetingParams)
214214 }
215215
216216 /**
217- * @param $meetingParams
218- *
219- * @throws \RuntimeException
217+ * @param mixed $meetingParams
220218 *
221219 * @return IsMeetingRunningResponse
220+ *
221+ * @throws \RuntimeException
222222 */
223223 public function isMeetingRunning ($ meetingParams )
224224 {
@@ -236,9 +236,9 @@ public function getMeetingsUrl()
236236 }
237237
238238 /**
239- * @throws \RuntimeException
240- *
241239 * @return GetMeetingsResponse
240+ *
241+ * @throws \RuntimeException
242242 */
243243 public function getMeetings ()
244244 {
@@ -260,9 +260,9 @@ public function getMeetingInfoUrl($meetingParams)
260260 /**
261261 * @param $meetingParams GetMeetingInfoParameters
262262 *
263- * @throws \RuntimeException
264- *
265263 * @return GetMeetingInfoResponse
264+ *
265+ * @throws \RuntimeException
266266 */
267267 public function getMeetingInfo ($ meetingParams )
268268 {
@@ -289,11 +289,11 @@ public function getRecordingsUrl($recordingsParams)
289289 }
290290
291291 /**
292- * @param $recordingParams
293- *
294- * @throws \RuntimeException
292+ * @param mixed $recordingParams
295293 *
296294 * @return GetRecordingsResponse
295+ *
296+ * @throws \RuntimeException
297297 */
298298 public function getRecordings ($ recordingParams )
299299 {
@@ -315,9 +315,9 @@ public function getPublishRecordingsUrl($recordingParams)
315315 /**
316316 * @param $recordingParams PublishRecordingsParameters
317317 *
318- * @throws \RuntimeException
319- *
320318 * @return PublishRecordingsResponse
319+ *
320+ * @throws \RuntimeException
321321 */
322322 public function publishRecordings ($ recordingParams )
323323 {
@@ -339,9 +339,9 @@ public function getDeleteRecordingsUrl($recordingParams)
339339 /**
340340 * @param $recordingParams DeleteRecordingsParameters
341341 *
342- * @throws \RuntimeException
343- *
344342 * @return DeleteRecordingsResponse
343+ *
344+ * @throws \RuntimeException
345345 */
346346 public function deleteRecordings ($ recordingParams )
347347 {
@@ -363,9 +363,9 @@ public function getUpdateRecordingsUrl($recordingParams)
363363 /**
364364 * @param $recordingParams UpdateRecordingsParameters
365365 *
366- * @throws \RuntimeException
367- *
368366 * @return UpdateRecordingsResponse
367+ *
368+ * @throws \RuntimeException
369369 */
370370 public function updateRecordings ($ recordingParams )
371371 {
@@ -387,7 +387,7 @@ public function getHooksCreateUrl($hookCreateParams)
387387 }
388388
389389 /**
390- * @param $hookCreateParams
390+ * @param mixed $hookCreateParams
391391 *
392392 * @return HooksCreateResponse
393393 */
@@ -427,7 +427,7 @@ public function getHooksDestroyUrl($hooksDestroyParams)
427427 }
428428
429429 /**
430- * @param $hooksDestroyParams
430+ * @param mixed $hooksDestroyParams
431431 *
432432 * @return HooksDestroyResponse
433433 */
@@ -500,9 +500,9 @@ public function buildUrl($method = '', $params = '', $append = true)
500500 * @param string $payload
501501 * @param string $contentType
502502 *
503- * @throws \RuntimeException
503+ * @return \SimpleXMLElement
504504 *
505- * @return SimpleXMLElement
505+ * @throws \RuntimeException
506506 */
507507 private function processXmlResponse ($ url , $ payload = '' , $ contentType = 'application/xml ' )
508508 {
@@ -554,7 +554,7 @@ private function processXmlResponse($url, $payload = '', $contentType = 'applica
554554 $ this ->setJSessionId ($ output_array ['JSESSIONID ' ]);
555555 }
556556
557- return new SimpleXMLElement ($ data );
557+ return new \ SimpleXMLElement ($ data );
558558 }
559559
560560 throw new \RuntimeException ('Post XML data set but curl PHP module is not installed or not enabled. ' );
0 commit comments