Skip to content

Commit a901722

Browse files
authored
Removed deprecated methods (#134)
* Removed deprecated methods * Extended tests
1 parent 2338a52 commit a901722

27 files changed

+71
-599
lines changed

src/Core/Record.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class Record
3232
private $startTime;
3333
private $endTime;
3434
private $participantCount;
35-
private $playbackType;
36-
private $playbackUrl;
37-
private $playbackLength;
3835
private $metas = [];
3936

4037
/** @var PlaybackFormat[] */
@@ -50,9 +47,6 @@ public function __construct(\SimpleXMLElement $xml)
5047
$this->startTime = (float) $xml->startTime->__toString();
5148
$this->endTime = (float) $xml->endTime->__toString();
5249
$this->participantCount = (int) $xml->participants->__toString();
53-
$this->playbackType = $xml->playback->format->type->__toString();
54-
$this->playbackUrl = $xml->playback->format->url->__toString();
55-
$this->playbackLength = (int) $xml->playback->format->length->__toString();
5650

5751
foreach ($xml->playback->children() as $format) {
5852
$this->playbackFormats[] = new PlaybackFormat($format);
@@ -127,33 +121,6 @@ public function getParticipantCount()
127121
return $this->participantCount;
128122
}
129123

130-
/**
131-
* @deprecated since 4.2. Use getPlaybackFormats() instead.
132-
* @return string
133-
*/
134-
public function getPlaybackType()
135-
{
136-
return $this->playbackType;
137-
}
138-
139-
/**
140-
* @deprecated since 4.2. Use getPlaybackFormats() instead.
141-
* @return string
142-
*/
143-
public function getPlaybackUrl()
144-
{
145-
return $this->playbackUrl;
146-
}
147-
148-
/**
149-
* @deprecated since 4.2. Use getPlaybackFormats() instead.
150-
* @return string
151-
*/
152-
public function getPlaybackLength()
153-
{
154-
return $this->playbackLength;
155-
}
156-
157124
/**
158125
* @return array
159126
*/

src/Parameters/CreateMeetingParameters.php

Lines changed: 6 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -379,150 +379,31 @@ public function __construct(string $meetingID, string $name)
379379
}
380380

381381
/**
382-
* @deprecated use getName()
383-
* @return string
384-
*/
385-
public function getMeetingName()
386-
{
387-
return $this->name;
388-
}
389-
390-
/**
391-
* @deprecated use setName()
392-
* @return static
393-
*/
394-
public function setMeetingName(string $name): self
395-
{
396-
$this->name = $name;
397-
398-
return $this;
399-
}
400-
401-
/**
402-
* @deprecated use getMeetingID()
403-
* @return string
404-
*/
405-
public function getMeetingId()
406-
{
407-
return $this->meetingID;
408-
}
409-
410-
/**
411-
* @deprecated use setMeetingID()
412382
* @return CreateMeetingParameters
413383
*/
414-
public function setMeetingId(string $meetingID)
415-
{
416-
$this->meetingID = $meetingID;
417-
418-
return $this;
419-
}
420-
421-
/**
422-
* @deprecated use getAttendeePW()
423-
* @return string
424-
*/
425-
public function getAttendeePassword()
426-
{
427-
return $this->attendeePW;
428-
}
429-
430-
/**
431-
* @deprecated use setAttendeePW()
432-
* @return static
433-
*/
434-
public function setAttendeePassword(string $password): self
435-
{
436-
$this->attendeePW = $password;
437-
438-
return $this;
439-
}
440-
441-
/**
442-
* @deprecated use getModeratorPW()
443-
* @return string
444-
*/
445-
public function getModeratorPassword()
446-
{
447-
return $this->moderatorPW;
448-
}
449-
450-
/**
451-
* @deprecated use setModeratorPW()
452-
* @return static
453-
*/
454-
public function setModeratorPassword(string $password): self
455-
{
456-
$this->moderatorPW = $password;
457-
458-
return $this;
459-
}
460-
461-
/**
462-
* @deprecated use getWelcome()
463-
* @return string
464-
*/
465-
public function getWelcomeMessage()
466-
{
467-
return $this->welcome;
468-
}
469-
470-
/**
471-
* @deprecated use setWelcome()
472-
* @return CreateMeetingParameters
473-
*/
474-
public function setWelcomeMessage(string $welcome)
475-
{
476-
$this->welcome = $welcome;
477-
478-
return $this;
479-
}
480-
481-
/**
482-
* @deprecated use getLogoutURL()
483-
* @return string
484-
*/
485-
public function getLogoutUrl()
486-
{
487-
return $this->logoutURL;
488-
}
489-
490-
/**
491-
* @deprecated use setLogoutURL()
492-
* @return CreateMeetingParameters
493-
*/
494-
public function setLogoutUrl(string $logoutUrl)
384+
public function setEndCallbackUrl(string $endCallbackUrl)
495385
{
496-
$this->logoutURL = $logoutUrl;
386+
$this->addMeta('endCallbackUrl', $endCallbackUrl);
497387

498388
return $this;
499389
}
500390

501-
/**
502-
* @deprecated use isRecord()
503-
* @return bool
504-
*/
505-
public function isRecorded()
506-
{
507-
return $this->record;
508-
}
509-
510391
/**
511392
* @return CreateMeetingParameters
512393
*/
513-
public function setEndCallbackUrl(string $endCallbackUrl)
394+
public function setRecordingReadyCallbackUrl(string $recordingReadyCallbackUrl)
514395
{
515-
$this->addMeta('endCallbackUrl', $endCallbackUrl);
396+
$this->addMeta('bbb-recording-ready-url', $recordingReadyCallbackUrl);
516397

517398
return $this;
518399
}
519400

520401
/**
521402
* @return CreateMeetingParameters
522403
*/
523-
public function setRecordingReadyCallbackUrl(string $recordingReadyCallbackUrl)
404+
public function setBreakout(bool $isBreakout)
524405
{
525-
$this->addMeta('bbb-recording-ready-url', $recordingReadyCallbackUrl);
406+
$this->isBreakout = $isBreakout;
526407

527408
return $this;
528409
}
@@ -553,37 +434,6 @@ public function disableUserCameraCap(): self
553434
return $this;
554435
}
555436

556-
/**
557-
* @return CreateMeetingParameters
558-
*/
559-
public function setBreakout(bool $isBreakout)
560-
{
561-
$this->isBreakout = $isBreakout;
562-
563-
return $this;
564-
}
565-
566-
/**
567-
* @deprecated use getParentMeetingID()
568-
* @return string
569-
*/
570-
public function getParentMeetingId()
571-
{
572-
return $this->parentMeetingID;
573-
}
574-
575-
/**
576-
* @deprecated use setParentMeetingID()
577-
*
578-
* @return CreateMeetingParameters
579-
*/
580-
public function setParentMeetingId(string $parentMeetingID)
581-
{
582-
$this->parentMeetingID = $parentMeetingID;
583-
584-
return $this;
585-
}
586-
587437
/**
588438
* @return bool
589439
*/

src/Parameters/DeleteRecordingsParameters.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,4 @@ public function __construct(string $recordID)
3535
{
3636
$this->recordID = $recordID;
3737
}
38-
39-
/**
40-
* @deprecated use getRecordID() instead
41-
* @return string
42-
*/
43-
public function getRecordingId()
44-
{
45-
return $this->recordID;
46-
}
47-
48-
/**
49-
* @deprecated use setRecordID() instead
50-
* @return DeleteRecordingsParameters
51-
*/
52-
public function setRecordingId(string $recordID)
53-
{
54-
$this->recordID = $recordID;
55-
56-
return $this;
57-
}
5838
}

src/Parameters/EndMeetingParameters.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,4 @@ public function __construct(string $meetingID, string $password)
4343
$this->password = $password;
4444
$this->meetingID = $meetingID;
4545
}
46-
47-
/**
48-
* @deprecated use getMeetingID()
49-
* @return string
50-
*/
51-
public function getMeetingId()
52-
{
53-
return $this->meetingID;
54-
}
55-
56-
/**
57-
* @deprecated use setMeetingID()
58-
* @return EndMeetingParameters
59-
*/
60-
public function setMeetingId(string $meetingID)
61-
{
62-
$this->meetingID = $meetingID;
63-
64-
return $this;
65-
}
6646
}

src/Parameters/GetMeetingInfoParameters.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,4 @@ public function __construct(string $meetingID)
3535
{
3636
$this->meetingID = $meetingID;
3737
}
38-
39-
/**
40-
* @deprecated use getMeetingID()
41-
* @return string
42-
*/
43-
public function getMeetingId()
44-
{
45-
return $this->meetingID;
46-
}
47-
48-
/**
49-
* @deprecated use setMeetingID()
50-
* @return GetMeetingInfoParameters
51-
*/
52-
public function setMeetingId(string $meetingID)
53-
{
54-
$this->meetingID = $meetingID;
55-
56-
return $this;
57-
}
5838
}

src/Parameters/GetRecordingTextTracksParameters.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
*/
2727
class GetRecordingTextTracksParameters extends MetaParameters
2828
{
29-
3029
/**
3130
* @var string
3231
*/
@@ -36,24 +35,4 @@ public function __construct(string $recordID)
3635
{
3736
$this->recordID = $recordID;
3837
}
39-
40-
/**
41-
* @deprecated use getRecordID()
42-
* @return string
43-
*/
44-
public function getRecordId()
45-
{
46-
return $this->recordID;
47-
}
48-
49-
/**
50-
* @deprecated use setRecordID()
51-
* @return GetRecordingTextTracksParameters
52-
*/
53-
public function setRecordId(string $recordID)
54-
{
55-
$this->recordID = $recordID;
56-
57-
return $this;
58-
}
5938
}

0 commit comments

Comments
 (0)