Skip to content

Commit c6766ca

Browse files
authored
Make all classes final (#249)
* Make all classes final * Fix rector
1 parent b806569 commit c6766ca

38 files changed

Lines changed: 40 additions & 40 deletions

src/Core/Attendee.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace BigBlueButton\Core;
2424

25-
class Attendee
25+
final class Attendee
2626
{
2727
private readonly string $userId;
2828

src/Core/Hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Class Meeting.
2727
*/
28-
class Hook
28+
final class Hook
2929
{
3030
private readonly int $hookId;
3131

@@ -37,7 +37,7 @@ class Hook
3737

3838
private readonly bool $rawData;
3939

40-
public function __construct(protected \SimpleXMLElement $rawXml)
40+
public function __construct(private readonly \SimpleXMLElement $rawXml)
4141
{
4242
$this->hookId = (int) $this->rawXml->hookID->__toString();
4343
$this->callbackUrl = $this->rawXml->callbackURL->__toString();

src/Core/ImagePreview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace BigBlueButton\Core;
2323

24-
class ImagePreview
24+
final class ImagePreview
2525
{
2626
public function __construct(
2727
private readonly int $width,

src/Core/Meeting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Class Meeting.
2929
*/
30-
class Meeting
30+
final class Meeting
3131
{
3232
private readonly string $meetingId;
3333

@@ -80,7 +80,7 @@ class Meeting
8080

8181
private readonly bool $isBreakout;
8282

83-
public function __construct(protected \SimpleXMLElement $rawXml)
83+
public function __construct(private readonly \SimpleXMLElement $rawXml)
8484
{
8585
$this->meetingId = $this->rawXml->meetingID->__toString();
8686
$this->meetingName = $this->rawXml->meetingName->__toString();

src/Core/PlaybackFormat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace BigBlueButton\Core;
2323

24-
class PlaybackFormat
24+
final class PlaybackFormat
2525
{
2626
private readonly string $type;
2727

src/Core/Record.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Class Record.
2727
*/
28-
class Record
28+
final class Record
2929
{
3030
private readonly string $recordId;
3131
private readonly string $meetingId;

src/Core/Track.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Class Track.
2727
*/
28-
class Track
28+
final class Track
2929
{
3030
private readonly string $href;
3131

src/Http/Transport/TransportRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Represents request data to be passed to {@link TransportInterface} for talking to BBB server.
2626
*/
27-
class TransportRequest
27+
final class TransportRequest
2828
{
2929
public function __construct(private readonly string $url, private readonly string $payload, private readonly string $contentType)
3030
{

src/Http/Transport/TransportResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Represents response returned by {@link TransportInterface} from BBB server.
2626
*/
27-
class TransportResponse
27+
final class TransportResponse
2828
{
2929
public function __construct(private readonly string $body, private readonly ?string $sessionId)
3030
{

src/Parameters/CreateMeetingParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
* @method string getSharedNotesInitialContentJsonUrl()
172172
* @method $this setSharedNotesInitialContentJsonUrl(string $sharedNotesInitialContentJsonUrl)
173173
*/
174-
class CreateMeetingParameters extends MetaParameters
174+
final class CreateMeetingParameters extends MetaParameters
175175
{
176176
protected ?string $welcome = null;
177177
protected ?string $dialNumber = null;

0 commit comments

Comments
 (0)