Skip to content

Commit 815d5d8

Browse files
committed
Remove all references to legacy "toArray"
- The method has been replaced by "toApiDataArray".
1 parent 5ef4eff commit 815d5d8

30 files changed

Lines changed: 1 addition & 434 deletions

phpunit.xml.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
<directory>tests</directory>
2323
</testsuite>
2424
</testsuites>
25-
<groups>
26-
<exclude>
27-
<group>ignore</group>
28-
</exclude>
29-
</groups>
3025
<source>
3126
<include>
3227
<directory suffix=".php">src</directory>

src/Parameters/CreateMeetingParameters.php

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,73 +1541,4 @@ public function getHTTPQuery(): string
15411541

15421542
return $this->buildHTTPQuery($queries);
15431543
}
1544-
1545-
/**
1546-
* @return array<string, int|string|true|null>// Explicitly specify key and value types
1547-
*
1548-
* @deprecated this function is replaced by getApiData() and shall be removed
1549-
* once new concept with BbbApiMapper-attribute is bullet prove
1550-
*/
1551-
public function toArray(): array
1552-
{
1553-
return [
1554-
'name' => $this->meetingName,
1555-
'meetingID' => $this->meetingId,
1556-
'attendeePW' => $this->attendeePassword,
1557-
'moderatorPW' => $this->moderatorPassword,
1558-
'dialNumber' => $this->dialNumber,
1559-
'voiceBridge' => $this->voiceBridge,
1560-
'webVoice' => $this->webVoice,
1561-
'logoutURL' => $this->logoutUrl,
1562-
'record' => !is_null($this->record) ? ($this->record ? 'true' : 'false') : $this->record,
1563-
'duration' => $this->duration,
1564-
'maxParticipants' => $this->maxParticipants,
1565-
'autoStartRecording' => !is_null($this->autoStartRecording) ? ($this->autoStartRecording ? 'true' : 'false') : $this->autoStartRecording,
1566-
'allowStartStopRecording' => !is_null($this->allowStartStopRecording) ? ($this->allowStartStopRecording ? 'true' : 'false') : $this->allowStartStopRecording,
1567-
'welcome' => !is_null($this->welcomeMessage) ? mb_trim($this->welcomeMessage) : '',
1568-
'moderatorOnlyMessage' => !is_null($this->moderatorOnlyMessage) ? mb_trim($this->moderatorOnlyMessage) : '',
1569-
'webcamsOnlyForModerator' => !is_null($this->webcamsOnlyForModerator) ? ($this->webcamsOnlyForModerator ? 'true' : 'false') : $this->webcamsOnlyForModerator,
1570-
'logo' => $this->logo,
1571-
'copyright' => $this->copyright,
1572-
'muteOnStart' => !is_null($this->muteOnStart) ? ($this->muteOnStart ? 'true' : 'false') : $this->muteOnStart,
1573-
// Commented to be removed 'guestPolicy' => $this->guestPolicy->value,
1574-
'lockSettingsDisableCam' => !is_null($this->lockSettingsDisableCam) ? ($this->lockSettingsDisableCam ? 'true' : 'false') : $this->lockSettingsDisableCam,
1575-
'lockSettingsDisableMic' => !is_null($this->lockSettingsDisableMic) ? ($this->lockSettingsDisableMic ? 'true' : 'false') : $this->lockSettingsDisableMic,
1576-
'lockSettingsDisablePrivateChat' => !is_null($this->lockSettingsDisablePrivateChat) ? ($this->lockSettingsDisablePrivateChat ? 'true' : 'false') : $this->lockSettingsDisablePrivateChat,
1577-
'lockSettingsDisablePublicChat' => !is_null($this->lockSettingsDisablePublicChat) ? ($this->lockSettingsDisablePublicChat ? 'true' : 'false') : $this->lockSettingsDisablePublicChat,
1578-
'lockSettingsDisableNotes' => !is_null($this->lockSettingsDisableNotes) ? ($this->lockSettingsDisableNotes ? 'true' : 'false') : $this->lockSettingsDisableNotes,
1579-
'lockSettingsHideUserList' => !is_null($this->lockSettingsHideUserList) ? ($this->lockSettingsHideUserList ? 'true' : 'false') : $this->lockSettingsHideUserList,
1580-
'lockSettingsLockedLayout' => !is_null($this->lockSettingsLockedLayout) ? ($this->lockSettingsLockedLayout ? 'true' : 'false') : $this->lockSettingsLockedLayout,
1581-
'lockSettingsLockOnJoin' => !is_null($this->lockSettingsLockOnJoin) ? ($this->lockSettingsLockOnJoin ? 'true' : 'false') : $this->lockSettingsLockOnJoin,
1582-
'lockSettingsLockOnJoinConfigurable' => !is_null($this->lockSettingsLockOnJoinConfigurable) ? ($this->lockSettingsLockOnJoinConfigurable ? 'true' : 'false') : $this->lockSettingsLockOnJoinConfigurable,
1583-
'lockSettingsHideViewersCursor' => !is_null($this->lockSettingsHideViewersCursor) ? ($this->lockSettingsHideViewersCursor ? 'true' : 'false') : $this->lockSettingsHideViewersCursor,
1584-
'allowModsToUnmuteUsers' => !is_null($this->allowModsToUnmuteUsers) ? ($this->allowModsToUnmuteUsers ? 'true' : 'false') : $this->allowModsToUnmuteUsers,
1585-
'allowModsToEjectCameras' => !is_null($this->allowModsToEjectCameras) ? ($this->allowModsToEjectCameras ? 'true' : 'false') : $this->allowModsToEjectCameras,
1586-
'bannerText' => !is_null($this->bannerText) ? mb_trim($this->bannerText) : '',
1587-
'bannerColor' => !is_null($this->bannerColor) ? mb_trim($this->bannerColor) : '',
1588-
'learningDashboardEnabled' => !is_null($this->learningDashboardEnabled) ? ($this->learningDashboardEnabled ? 'true' : 'false') : $this->learningDashboardEnabled,
1589-
'virtualBackgroundsDisabled' => !is_null($this->virtualBackgroundsDisabled) ? ($this->virtualBackgroundsDisabled ? 'true' : 'false') : $this->virtualBackgroundsDisabled,
1590-
'endWhenNoModeratorDelayInMinutes' => $this->endWhenNoModeratorDelayInMinutes,
1591-
'allowRequestsWithoutSession' => !is_null($this->allowRequestsWithoutSession) ? ($this->allowRequestsWithoutSession ? 'true' : 'false') : $this->allowRequestsWithoutSession,
1592-
'meetingEndedURL' => $this->meetingEndedURL,
1593-
'breakoutRoomsEnabled' => !is_null($this->breakoutRoomsEnabled) ? ($this->breakoutRoomsEnabled ? 'true' : 'false') : $this->breakoutRoomsEnabled,
1594-
'breakoutRoomsRecord' => !is_null($this->breakoutRoomsRecord) ? ($this->breakoutRoomsRecord ? 'true' : 'false') : $this->breakoutRoomsRecord,
1595-
'breakoutRoomsPrivateChatEnabled' => !is_null($this->breakoutRoomsPrivateChatEnabled) ? ($this->breakoutRoomsPrivateChatEnabled ? 'true' : 'false') : $this->breakoutRoomsPrivateChatEnabled,
1596-
'endWhenNoModerator' => !is_null($this->endWhenNoModerator) ? ($this->endWhenNoModerator ? 'true' : 'false') : $this->endWhenNoModerator,
1597-
'meetingKeepEvents' => !is_null($this->meetingKeepEvents) ? ($this->meetingKeepEvents ? 'true' : 'false') : $this->meetingKeepEvents,
1598-
'meetingCameraCap' => $this->meetingCameraCap,
1599-
'userCameraCap' => $this->userCameraCap,
1600-
'meetingExpireIfNoUserJoinedInMinutes' => $this->meetingExpireIfNoUserJoinedInMinutes,
1601-
'meetingExpireWhenLastUserLeftInMinutes' => $this->meetingExpireWhenLastUserLeftInMinutes,
1602-
'preUploadedPresentation' => $this->preUploadedPresentation,
1603-
'preUploadedPresentationName' => $this->preUploadedPresentationName,
1604-
'preUploadedPresentationOverrideDefault' => !is_null($this->preUploadedPresentationOverrideDefault) ? ($this->preUploadedPresentationOverrideDefault ? 'true' : 'false') : $this->preUploadedPresentationOverrideDefault,
1605-
'disabledFeatures' => join(',', array_map(fn ($disabledFeature) => $disabledFeature->value, $this->getDisabledFeatures())),
1606-
'disabledFeaturesExclude' => join(',', array_map(fn ($disabledFeatureExclude) => $disabledFeatureExclude->value, $this->getDisabledFeaturesExclude())),
1607-
'notifyRecordingIsOn' => !is_null($this->notifyRecordingIsOn) ? ($this->notifyRecordingIsOn ? 'true' : 'false') : $this->notifyRecordingIsOn,
1608-
'presentationUploadExternalUrl' => $this->presentationUploadExternalUrl,
1609-
'presentationUploadExternalDescription' => $this->presentationUploadExternalDescription,
1610-
'recordFullDurationMedia' => !is_null($this->recordFullDurationMedia) ? ($this->recordFullDurationMedia ? 'true' : 'false') : $this->recordFullDurationMedia,
1611-
];
1612-
}
16131544
}

src/Parameters/DeleteRecordingsParameters.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,4 @@ public function setRecordingId(string $recordingId): self
4646

4747
return $this;
4848
}
49-
50-
/**
51-
* @return array<string, string> // Explicitly specify key and value types
52-
*
53-
* @deprecated this function is replaced by getApiData() and shall be removed
54-
* once new concept with BbbApiMapper-attribute is bullet prove
55-
*/
56-
public function toArray(): array
57-
{
58-
return [
59-
'recordID' => $this->recordingId,
60-
];
61-
}
6249
}

src/Parameters/EndMeetingParameters.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,4 @@ public function setPassword(?string $password): self
7373

7474
return $this;
7575
}
76-
77-
/**
78-
* @return array<string, null|string> // Explicitly specify key and value types
79-
*
80-
* @deprecated this function is replaced by getApiData() and shall be removed
81-
* once new concept with BbbApiMapper-attribute is bullet prove
82-
*/
83-
public function toArray(): ?array
84-
{
85-
return [
86-
'meetingID' => $this->meetingId,
87-
'password' => $this->password,
88-
];
89-
}
9076
}

src/Parameters/GetMeetingInfoParameters.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,4 @@ public function setLimit(?int $limit): self
7676

7777
return $this;
7878
}
79-
80-
/**
81-
* @return array<string, null|int|string> // Explicitly specify key and value types
82-
*
83-
* @deprecated this function is replaced by getApiData() and shall be removed
84-
* once new concept with BbbApiMapper-attribute is bullet prove
85-
*/
86-
public function toArray(): array
87-
{
88-
return [
89-
'meetingID' => $this->meetingId,
90-
'offset' => $this->offset,
91-
'limit' => $this->limit,
92-
];
93-
}
9479
}

src/Parameters/GetRecordingTextTracksParameters.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,4 @@ public function getHTTPQuery(): string
5757

5858
return $this->buildHTTPQuery($queries);
5959
}
60-
61-
/**
62-
* @return array<string, string> // Explicitly specify key and value types
63-
*
64-
* @deprecated this function is replaced by getApiData() and shall be removed
65-
* once new concept with BbbApiMapper-attribute is bullet prove
66-
*/
67-
public function toArray(): array
68-
{
69-
return [
70-
'recordID' => $this->recordId,
71-
];
72-
}
7360
}

src/Parameters/GetRecordingsParameters.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,4 @@ public function getHTTPQuery(): string
7979

8080
return $this->buildHTTPQuery($queries);
8181
}
82-
83-
/**
84-
* @return array<string, null|string> // Explicitly specify key and value types
85-
*
86-
* @deprecated this function is replaced by getApiData() and shall be removed
87-
* once new concept with BbbApiMapper-attribute is bullet prove
88-
*/
89-
public function toArray(): array
90-
{
91-
return [
92-
'meetingID' => $this->meetingId,
93-
'recordID' => $this->recordId,
94-
'state' => $this->state,
95-
];
96-
}
9782
}

src/Parameters/HooksCreateParameters.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,4 @@ public function setGetRaw(bool $getRaw): self
8787

8888
return $this;
8989
}
90-
91-
/**
92-
* @return array<string, null|string> // Explicitly specify key and value types
93-
*
94-
* @deprecated this function is replaced by getApiData() and shall be removed
95-
* once new concept with BbbApiMapper-attribute is bullet prove
96-
*/
97-
public function toArray(): array
98-
{
99-
return [
100-
'callbackURL' => $this->callbackUrl,
101-
'meetingID' => $this->meetingId,
102-
'getRaw' => !is_null($this->getRaw) ? ($this->getRaw ? 'true' : 'false') : $this->getRaw,
103-
];
104-
}
10590
}

src/Parameters/HooksDestroyParameters.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,4 @@ public function setHookId(int $hookId): self
4343

4444
return $this;
4545
}
46-
47-
/**
48-
* @return array<string, int> // Explicitly specify key and value types
49-
*
50-
* @deprecated this function is replaced by getApiData() and shall be removed
51-
* once new concept with BbbApiMapper-attribute is bullet prove
52-
*/
53-
public function toArray(): array
54-
{
55-
return [
56-
'hookID' => $this->hookId,
57-
];
58-
}
5946
}

src/Parameters/InsertDocumentParameters.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,4 @@ public function setMeetingId(string $meetingId): self
4848

4949
return $this;
5050
}
51-
52-
/**
53-
* @return array<string, string> // Explicitly specify key and value types
54-
*
55-
* @deprecated this function is replaced by getApiData() and shall be removed
56-
* once new concept with BbbApiMapper-attribute is bullet prove
57-
*/
58-
public function toArray(): array
59-
{
60-
return [
61-
'meetingID' => $this->meetingId,
62-
];
63-
}
6451
}

0 commit comments

Comments
 (0)