diff --git a/src/Core/Attendee.php b/src/Core/Attendee.php index 1ef79b21..f472017c 100644 --- a/src/Core/Attendee.php +++ b/src/Core/Attendee.php @@ -22,7 +22,7 @@ namespace BigBlueButton\Core; -class Attendee +final class Attendee { private readonly string $userId; diff --git a/src/Core/Hook.php b/src/Core/Hook.php index 5cda828c..69182a40 100644 --- a/src/Core/Hook.php +++ b/src/Core/Hook.php @@ -25,7 +25,7 @@ /** * Class Meeting. */ -class Hook +final class Hook { private readonly int $hookId; @@ -37,7 +37,7 @@ class Hook private readonly bool $rawData; - public function __construct(protected \SimpleXMLElement $rawXml) + public function __construct(private readonly \SimpleXMLElement $rawXml) { $this->hookId = (int) $this->rawXml->hookID->__toString(); $this->callbackUrl = $this->rawXml->callbackURL->__toString(); diff --git a/src/Core/ImagePreview.php b/src/Core/ImagePreview.php index f58d4421..d7584aab 100644 --- a/src/Core/ImagePreview.php +++ b/src/Core/ImagePreview.php @@ -21,7 +21,7 @@ namespace BigBlueButton\Core; -class ImagePreview +final class ImagePreview { public function __construct( private readonly int $width, diff --git a/src/Core/Meeting.php b/src/Core/Meeting.php index d087ff28..455f5dc5 100644 --- a/src/Core/Meeting.php +++ b/src/Core/Meeting.php @@ -27,7 +27,7 @@ /** * Class Meeting. */ -class Meeting +final class Meeting { private readonly string $meetingId; @@ -80,7 +80,7 @@ class Meeting private readonly bool $isBreakout; - public function __construct(protected \SimpleXMLElement $rawXml) + public function __construct(private readonly \SimpleXMLElement $rawXml) { $this->meetingId = $this->rawXml->meetingID->__toString(); $this->meetingName = $this->rawXml->meetingName->__toString(); diff --git a/src/Core/PlaybackFormat.php b/src/Core/PlaybackFormat.php index ef1209e1..cdeb71a7 100644 --- a/src/Core/PlaybackFormat.php +++ b/src/Core/PlaybackFormat.php @@ -21,7 +21,7 @@ namespace BigBlueButton\Core; -class PlaybackFormat +final class PlaybackFormat { private readonly string $type; diff --git a/src/Core/Record.php b/src/Core/Record.php index c011bf57..d0a6ec26 100644 --- a/src/Core/Record.php +++ b/src/Core/Record.php @@ -25,7 +25,7 @@ /** * Class Record. */ -class Record +final class Record { private readonly string $recordId; private readonly string $meetingId; diff --git a/src/Core/Track.php b/src/Core/Track.php index 7ef014ac..ff805c0a 100644 --- a/src/Core/Track.php +++ b/src/Core/Track.php @@ -25,7 +25,7 @@ /** * Class Track. */ -class Track +final class Track { private readonly string $href; diff --git a/src/Http/Transport/TransportRequest.php b/src/Http/Transport/TransportRequest.php index b1ae3ced..b5ac4c0c 100644 --- a/src/Http/Transport/TransportRequest.php +++ b/src/Http/Transport/TransportRequest.php @@ -24,7 +24,7 @@ /** * Represents request data to be passed to {@link TransportInterface} for talking to BBB server. */ -class TransportRequest +final class TransportRequest { public function __construct(private readonly string $url, private readonly string $payload, private readonly string $contentType) { diff --git a/src/Http/Transport/TransportResponse.php b/src/Http/Transport/TransportResponse.php index 42a97dd3..fb1bf02c 100644 --- a/src/Http/Transport/TransportResponse.php +++ b/src/Http/Transport/TransportResponse.php @@ -24,7 +24,7 @@ /** * Represents response returned by {@link TransportInterface} from BBB server. */ -class TransportResponse +final class TransportResponse { public function __construct(private readonly string $body, private readonly ?string $sessionId) { diff --git a/src/Parameters/CreateMeetingParameters.php b/src/Parameters/CreateMeetingParameters.php index a903daaf..0f96e34a 100644 --- a/src/Parameters/CreateMeetingParameters.php +++ b/src/Parameters/CreateMeetingParameters.php @@ -171,7 +171,7 @@ * @method string getSharedNotesInitialContentJsonUrl() * @method $this setSharedNotesInitialContentJsonUrl(string $sharedNotesInitialContentJsonUrl) */ -class CreateMeetingParameters extends MetaParameters +final class CreateMeetingParameters extends MetaParameters { protected ?string $welcome = null; protected ?string $dialNumber = null; diff --git a/src/Parameters/DeleteRecordingsParameters.php b/src/Parameters/DeleteRecordingsParameters.php index 3754105d..22db18e7 100644 --- a/src/Parameters/DeleteRecordingsParameters.php +++ b/src/Parameters/DeleteRecordingsParameters.php @@ -28,7 +28,7 @@ * @method string getRecordID() * @method $this setRecordID(string $recordID) */ -class DeleteRecordingsParameters extends BaseParameters +final class DeleteRecordingsParameters extends BaseParameters { public function __construct(protected string $recordID) { diff --git a/src/Parameters/EndMeetingParameters.php b/src/Parameters/EndMeetingParameters.php index 918f5c81..6094f934 100644 --- a/src/Parameters/EndMeetingParameters.php +++ b/src/Parameters/EndMeetingParameters.php @@ -28,7 +28,7 @@ * @method string getMeetingID() * @method $this setMeetingID(string $id) */ -class EndMeetingParameters extends BaseParameters +final class EndMeetingParameters extends BaseParameters { public function __construct(protected string $meetingID) { diff --git a/src/Parameters/GetMeetingInfoParameters.php b/src/Parameters/GetMeetingInfoParameters.php index c11e1b2e..6f30782d 100644 --- a/src/Parameters/GetMeetingInfoParameters.php +++ b/src/Parameters/GetMeetingInfoParameters.php @@ -28,7 +28,7 @@ * @method string getMeetingID() * @method $this setMeetingID(string $id) */ -class GetMeetingInfoParameters extends BaseParameters +final class GetMeetingInfoParameters extends BaseParameters { public function __construct(protected string $meetingID) { diff --git a/src/Parameters/GetRecordingTextTracksParameters.php b/src/Parameters/GetRecordingTextTracksParameters.php index 59cbf83b..4eaa9064 100644 --- a/src/Parameters/GetRecordingTextTracksParameters.php +++ b/src/Parameters/GetRecordingTextTracksParameters.php @@ -28,7 +28,7 @@ * @method string getRecordID() * @method $this setRecordID(string $recordID) */ -class GetRecordingTextTracksParameters extends MetaParameters +final class GetRecordingTextTracksParameters extends MetaParameters { public function __construct(protected string $recordID) { diff --git a/src/Parameters/GetRecordingsParameters.php b/src/Parameters/GetRecordingsParameters.php index 38cb842c..2f5f3b57 100644 --- a/src/Parameters/GetRecordingsParameters.php +++ b/src/Parameters/GetRecordingsParameters.php @@ -32,7 +32,7 @@ * @method string getState() * @method $this setState(string $state) */ -class GetRecordingsParameters extends MetaParameters +final class GetRecordingsParameters extends MetaParameters { protected ?string $meetingID = null; protected ?string $recordID = null; diff --git a/src/Parameters/HooksCreateParameters.php b/src/Parameters/HooksCreateParameters.php index ac020ea4..086d5954 100644 --- a/src/Parameters/HooksCreateParameters.php +++ b/src/Parameters/HooksCreateParameters.php @@ -32,7 +32,7 @@ * @method bool|null isGetRaw() * @method $this setGetRaw(bool $getRaw) */ -class HooksCreateParameters extends BaseParameters +final class HooksCreateParameters extends BaseParameters { protected ?string $meetingID = null; protected ?string $eventID = null; diff --git a/src/Parameters/HooksDestroyParameters.php b/src/Parameters/HooksDestroyParameters.php index f1134de9..ca92e3a2 100644 --- a/src/Parameters/HooksDestroyParameters.php +++ b/src/Parameters/HooksDestroyParameters.php @@ -26,7 +26,7 @@ * @method string getHookID() * @method $this setHookID(string $hookID) */ -class HooksDestroyParameters extends BaseParameters +final class HooksDestroyParameters extends BaseParameters { public function __construct(protected string $hookID) { diff --git a/src/Parameters/IsMeetingRunningParameters.php b/src/Parameters/IsMeetingRunningParameters.php index 9244f666..fb5231d4 100644 --- a/src/Parameters/IsMeetingRunningParameters.php +++ b/src/Parameters/IsMeetingRunningParameters.php @@ -28,7 +28,7 @@ * @method string getMeetingID() * @method $this setMeetingID(string $id) */ -class IsMeetingRunningParameters extends BaseParameters +final class IsMeetingRunningParameters extends BaseParameters { public function __construct(protected string $meetingID) { diff --git a/src/Parameters/JoinMeetingParameters.php b/src/Parameters/JoinMeetingParameters.php index a95eb384..a89e3932 100644 --- a/src/Parameters/JoinMeetingParameters.php +++ b/src/Parameters/JoinMeetingParameters.php @@ -65,7 +65,7 @@ * @method string getLastName() * @method $this setLastName(string $lastName) */ -class JoinMeetingParameters extends UserDataParameters +final class JoinMeetingParameters extends UserDataParameters { protected ?int $createTime = null; protected ?string $userID = null; diff --git a/src/Parameters/PublishRecordingsParameters.php b/src/Parameters/PublishRecordingsParameters.php index fd73ef0d..e94f61b3 100644 --- a/src/Parameters/PublishRecordingsParameters.php +++ b/src/Parameters/PublishRecordingsParameters.php @@ -30,7 +30,7 @@ * @method bool|null isPublish() * @method $this setPublish(bool $publish) */ -class PublishRecordingsParameters extends BaseParameters +final class PublishRecordingsParameters extends BaseParameters { public function __construct(protected string $recordID, protected bool $publish) { diff --git a/src/Parameters/PutRecordingTextTrackParameters.php b/src/Parameters/PutRecordingTextTrackParameters.php index 7969bcbc..9ebacbf2 100644 --- a/src/Parameters/PutRecordingTextTrackParameters.php +++ b/src/Parameters/PutRecordingTextTrackParameters.php @@ -38,7 +38,7 @@ * @method mixed getFile() * @method $this setFile(string $file) */ -class PutRecordingTextTrackParameters extends BaseParameters +final class PutRecordingTextTrackParameters extends BaseParameters { protected ?string $contentType = null; protected ?string $file = null; diff --git a/src/Parameters/UpdateRecordingsParameters.php b/src/Parameters/UpdateRecordingsParameters.php index 1dc2f2a6..527c21ec 100644 --- a/src/Parameters/UpdateRecordingsParameters.php +++ b/src/Parameters/UpdateRecordingsParameters.php @@ -28,7 +28,7 @@ * @method string getRecordID() * @method $this setRecordID(string $recordID) */ -class UpdateRecordingsParameters extends MetaParameters +final class UpdateRecordingsParameters extends MetaParameters { public function __construct(protected string $recordID) { diff --git a/src/Responses/ApiVersionResponse.php b/src/Responses/ApiVersionResponse.php index bbe86ed9..96e8331d 100644 --- a/src/Responses/ApiVersionResponse.php +++ b/src/Responses/ApiVersionResponse.php @@ -25,7 +25,7 @@ /** * Class ApiVersionResponse. */ -class ApiVersionResponse extends BaseResponse +final class ApiVersionResponse extends BaseResponse { public function getVersion(): string { diff --git a/src/Responses/CreateMeetingResponse.php b/src/Responses/CreateMeetingResponse.php index fb7bfd13..59206166 100644 --- a/src/Responses/CreateMeetingResponse.php +++ b/src/Responses/CreateMeetingResponse.php @@ -25,7 +25,7 @@ /** * Class CreateMeetingResponse. */ -class CreateMeetingResponse extends BaseResponse +final class CreateMeetingResponse extends BaseResponse { public const KEY_DUPLICATE_WARNING = 'duplicateWarning'; public const KEY_ID_NOT_UNIQUE = 'idNotUnique'; diff --git a/src/Responses/DeleteRecordingsResponse.php b/src/Responses/DeleteRecordingsResponse.php index 2df97a4a..38a8085a 100644 --- a/src/Responses/DeleteRecordingsResponse.php +++ b/src/Responses/DeleteRecordingsResponse.php @@ -25,7 +25,7 @@ /** * Class DeleteRecordingsResponse. */ -class DeleteRecordingsResponse extends BaseResponse +final class DeleteRecordingsResponse extends BaseResponse { public const KEY_NOT_FOUND = 'notFound'; diff --git a/src/Responses/EndMeetingResponse.php b/src/Responses/EndMeetingResponse.php index a1b8e283..77085c89 100644 --- a/src/Responses/EndMeetingResponse.php +++ b/src/Responses/EndMeetingResponse.php @@ -25,7 +25,7 @@ /** * Class EndMeetingResponse. */ -class EndMeetingResponse extends BaseResponse +final class EndMeetingResponse extends BaseResponse { public const KEY_SET_END_MEETING_REQUEST = 'sentEndMeetingRequest'; diff --git a/src/Responses/GetMeetingInfoResponse.php b/src/Responses/GetMeetingInfoResponse.php index ea579d79..123970c2 100644 --- a/src/Responses/GetMeetingInfoResponse.php +++ b/src/Responses/GetMeetingInfoResponse.php @@ -27,7 +27,7 @@ /** * Class GetMeetingInfoResponse. */ -class GetMeetingInfoResponse extends BaseResponse +final class GetMeetingInfoResponse extends BaseResponse { private ?Meeting $meeting = null; diff --git a/src/Responses/GetMeetingsResponse.php b/src/Responses/GetMeetingsResponse.php index 2c057699..6b5d49a0 100644 --- a/src/Responses/GetMeetingsResponse.php +++ b/src/Responses/GetMeetingsResponse.php @@ -27,7 +27,7 @@ /** * Class GetMeetingsResponse. */ -class GetMeetingsResponse extends BaseResponse +final class GetMeetingsResponse extends BaseResponse { /** * @var Meeting[] diff --git a/src/Responses/GetRecordingTextTracksResponse.php b/src/Responses/GetRecordingTextTracksResponse.php index cc32c275..23a51a28 100644 --- a/src/Responses/GetRecordingTextTracksResponse.php +++ b/src/Responses/GetRecordingTextTracksResponse.php @@ -27,7 +27,7 @@ /** * Class GetRecordingTextTracksResponse. */ -class GetRecordingTextTracksResponse extends BaseResponseAsJson +final class GetRecordingTextTracksResponse extends BaseResponseAsJson { /** * @var Track[] diff --git a/src/Responses/GetRecordingsResponse.php b/src/Responses/GetRecordingsResponse.php index 3227ad75..8521033d 100644 --- a/src/Responses/GetRecordingsResponse.php +++ b/src/Responses/GetRecordingsResponse.php @@ -27,7 +27,7 @@ /** * Class GetRecordingsResponse. */ -class GetRecordingsResponse extends BaseResponse +final class GetRecordingsResponse extends BaseResponse { public const KEY_NO_RECORDINGS = 'noRecordings'; diff --git a/src/Responses/HooksCreateResponse.php b/src/Responses/HooksCreateResponse.php index 7290d2db..80eaace5 100644 --- a/src/Responses/HooksCreateResponse.php +++ b/src/Responses/HooksCreateResponse.php @@ -25,7 +25,7 @@ /** * Class GetRecordingsResponse. */ -class HooksCreateResponse extends BaseResponse +final class HooksCreateResponse extends BaseResponse { public function getHookId(): int { diff --git a/src/Responses/HooksDestroyResponse.php b/src/Responses/HooksDestroyResponse.php index 2605c734..68105359 100644 --- a/src/Responses/HooksDestroyResponse.php +++ b/src/Responses/HooksDestroyResponse.php @@ -25,7 +25,7 @@ /** * Class GetRecordingsResponse. */ -class HooksDestroyResponse extends BaseResponse +final class HooksDestroyResponse extends BaseResponse { public const KEY_MISSING_HOOK = 'destroyMissingHook'; public const KEY_HOOK_ERROR = 'destroyHookError'; diff --git a/src/Responses/HooksListResponse.php b/src/Responses/HooksListResponse.php index 4edb0ee5..c636a92a 100644 --- a/src/Responses/HooksListResponse.php +++ b/src/Responses/HooksListResponse.php @@ -27,7 +27,7 @@ /** * Class GetRecordingsResponse. */ -class HooksListResponse extends BaseResponse +final class HooksListResponse extends BaseResponse { /** * @var Hook[] diff --git a/src/Responses/IsMeetingRunningResponse.php b/src/Responses/IsMeetingRunningResponse.php index 3014cd39..a4fc9d1f 100644 --- a/src/Responses/IsMeetingRunningResponse.php +++ b/src/Responses/IsMeetingRunningResponse.php @@ -25,7 +25,7 @@ /** * Class IsMeetingRunningResponse. */ -class IsMeetingRunningResponse extends BaseResponse +final class IsMeetingRunningResponse extends BaseResponse { public function isRunning(): bool { diff --git a/src/Responses/JoinMeetingResponse.php b/src/Responses/JoinMeetingResponse.php index e5dd01ff..ac1dfc46 100644 --- a/src/Responses/JoinMeetingResponse.php +++ b/src/Responses/JoinMeetingResponse.php @@ -25,7 +25,7 @@ /** * Class JoinMeetingResponse. */ -class JoinMeetingResponse extends BaseResponse +final class JoinMeetingResponse extends BaseResponse { public const KEY_SUCCESSFULLY_JOINED = 'successfullyJoined'; public const KEY_INVALID_SESSION = 'InvalidSession'; diff --git a/src/Responses/PublishRecordingsResponse.php b/src/Responses/PublishRecordingsResponse.php index 4d9c0ca6..18f873d3 100644 --- a/src/Responses/PublishRecordingsResponse.php +++ b/src/Responses/PublishRecordingsResponse.php @@ -25,7 +25,7 @@ /** * Class PublishRecordingsResponse. */ -class PublishRecordingsResponse extends BaseResponse +final class PublishRecordingsResponse extends BaseResponse { public const KEY_NOT_FOUND = 'notFound'; diff --git a/src/Responses/PutRecordingTextTrackResponse.php b/src/Responses/PutRecordingTextTrackResponse.php index 27aa1cf0..9db2a54e 100644 --- a/src/Responses/PutRecordingTextTrackResponse.php +++ b/src/Responses/PutRecordingTextTrackResponse.php @@ -25,7 +25,7 @@ /** * Class PutRecordingTextTracksResponse. */ -class PutRecordingTextTrackResponse extends BaseResponseAsJson +final class PutRecordingTextTrackResponse extends BaseResponseAsJson { public const KEY_SUCCESS = 'upload_text_track_success'; public const KEY_FAILED = 'upload_text_track_failed'; diff --git a/src/Responses/UpdateRecordingsResponse.php b/src/Responses/UpdateRecordingsResponse.php index acbc7271..0ce1eaf2 100644 --- a/src/Responses/UpdateRecordingsResponse.php +++ b/src/Responses/UpdateRecordingsResponse.php @@ -25,7 +25,7 @@ /** * Class UpdateRecordingsResponse. */ -class UpdateRecordingsResponse extends BaseResponse +final class UpdateRecordingsResponse extends BaseResponse { public const KEY_NOT_FOUND = 'notFound';