Skip to content

Commit

Permalink
Merge pull request #36 from CrazyTapok-bit/dev-master
Browse files Browse the repository at this point in the history
Make classes final
  • Loading branch information
CrazyTapok-bit authored May 27, 2023
2 parents ffe0f7d + 12bc069 commit 70aef54
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Entities/InitData.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use TgWebValid\Entities\InitData\User;
use TgWebValid\Make\InitData as MakeInitData;

class InitData extends MakeInitData
final class InitData extends MakeInitData
{
/**
* Optional. A unique identifier for the Web App session, required for sending messages via the answerWebAppQuery method.
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/InitData/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Make\Make;

class Chat extends Make
final class Chat extends Make
{
/**
* Unique identifier for this chat. This number may have more than 32 significant bits and some
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/InitData/Receiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Make\Make;

class Receiver extends Make
final class Receiver extends Make
{
/**
* A unique identifier for the user or bot.
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/InitData/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Make\Make;

class User extends Make
final class User extends Make
{
/**
* A unique identifier for the user or bot.
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/LoginWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Make\Make;

class LoginWidget extends Make
final class LoginWidget extends Make
{
/**
* A unique identifier for the user or bot.
Expand Down
2 changes: 1 addition & 1 deletion src/TgWebValid.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use TgWebValid\Validator\InitDataValidator;
use TgWebValid\Validator\LoginWidgetValidator;

class TgWebValid
final class TgWebValid
{
public function __construct(
private string $token
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/InitDataValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Entities\InitData;

class InitDataValidator extends Validator
final class InitDataValidator extends Validator
{
public function validate(string $data): InitData|false
{
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/LoginWidgetValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use TgWebValid\Entities\LoginWidget;

class LoginWidgetValidator extends Validator
final class LoginWidgetValidator extends Validator
{
/**
* @param array<string, int|string|bool> $data
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities/InitData/ChatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use TgWebValid\Entities\InitData\Chat;

class ChatTest extends TestCase
final class ChatTest extends TestCase
{
/**
* @return array<string, int|string>
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities/InitData/ReceiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use TgWebValid\Entities\InitData\Receiver;

class ReceiverTest extends TestCase
final class ReceiverTest extends TestCase
{
/**
* @return array<string, int|string>
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities/InitData/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use TgWebValid\Entities\InitData\User;

class UserTest extends TestCase
final class UserTest extends TestCase
{
/**
* @return array<string, int|string>
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities/InitDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use TgWebValid\Entities\InitData\Receiver;
use TgWebValid\Entities\InitData\User;

class InitDataTest extends TestCase
final class InitDataTest extends TestCase
{
/**
* @return array<string, int|string|bool>
Expand Down
2 changes: 1 addition & 1 deletion tests/Entities/LoginWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use TgWebValid\Entities\LoginWidget;

class LoginWidgetTest extends TestCase
final class LoginWidgetTest extends TestCase
{
/**
* @return array<string, int|string>
Expand Down
2 changes: 1 addition & 1 deletion tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PHPUnit\Framework\TestCase;

class HelpersTest extends TestCase
final class HelpersTest extends TestCase
{
public function testCamelize(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/InitDataValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class InitDataValidatorTest extends TestCase

protected function setUp(): void
{
$this->validator = new class ('5854973744:AAFnq4HoybEzqCJ-8HYHY_zlvkc_-H-kXq4') extends InitDataValidator {};
$this->validator = new InitDataValidator ('5854973744:AAFnq4HoybEzqCJ-8HYHY_zlvkc_-H-kXq4');
}

public function testParse(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/LoginWidgetValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LoginWidgetValidatorTest extends TestCase

protected function setUp(): void
{
$this->validator = new class ('5854973744:AAFnq4HoybEzqCJ-8HYHY_zlvkc_-H-kXq4') extends LoginWidgetValidator {};
$this->validator = new LoginWidgetValidator ('5854973744:AAFnq4HoybEzqCJ-8HYHY_zlvkc_-H-kXq4');
}

public function testValidated(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Validator/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use PHPUnit\Framework\TestCase;
use TgWebValid\Validator\Validator;

class ValidatorTest extends TestCase
final class ValidatorTest extends TestCase
{
protected Validator $validator;

Expand Down

0 comments on commit 70aef54

Please sign in to comment.