Skip to content

Commit

Permalink
Refactor: drop finals
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jul 4, 2023
1 parent 276791b commit 4d8b01c
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/RouteDumpCommand.php
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(self::NAME)]
final class RouteDumpCommand extends Command
class RouteDumpCommand extends Command
{

public const NAME = 'apitte:route:dump';
Expand Down
2 changes: 1 addition & 1 deletion src/Console/DI/ConsolePlugin.php
Expand Up @@ -5,7 +5,7 @@
use Apitte\Console\Command\RouteDumpCommand;
use Apitte\Core\DI\Plugin\Plugin;

final class ConsolePlugin extends Plugin
class ConsolePlugin extends Plugin
{

public static function getName(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Id.php
Expand Up @@ -13,7 +13,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
final class Id
class Id
{

private string $name;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Method.php
Expand Up @@ -13,7 +13,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class Method
class Method
{

/** @var string[] */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Negotiation.php
Expand Up @@ -12,7 +12,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final class Negotiation
class Negotiation
{

private string $suffix;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Negotiations.php
Expand Up @@ -11,7 +11,7 @@
* @Target("METHOD")
* @NamedArgumentConstructor()
*/
final class Negotiations
class Negotiations
{

/** @var Negotiation[] */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/OpenApi.php
Expand Up @@ -12,7 +12,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
final class OpenApi
class OpenApi
{

private string $data;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Path.php
Expand Up @@ -13,7 +13,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
final class Path
class Path
{

private string $path;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/RequestBody.php
Expand Up @@ -12,7 +12,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class RequestBody
class RequestBody
{

private ?string $description;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/RequestParameter.php
Expand Up @@ -14,7 +14,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final class RequestParameter
class RequestParameter
{

private string $name;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Response.php
Expand Up @@ -13,7 +13,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final class Response
class Response
{

private string $code;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Responses.php
Expand Up @@ -11,7 +11,7 @@
* @Target("METHOD")
* @NamedArgumentConstructor()
*/
final class Responses
class Responses
{

/** @var Response[] */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Annotation/Controller/Tag.php
Expand Up @@ -13,7 +13,7 @@
* @NamedArgumentConstructor()
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final class Tag
class Tag
{

private string $name;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/DI/Loader/DoctrineAnnotationLoader.php
Expand Up @@ -26,7 +26,7 @@
use ReflectionClass;
use ReflectionMethod;

final class DoctrineAnnotationLoader extends AbstractContainerLoader
class DoctrineAnnotationLoader extends AbstractContainerLoader
{

private ?Reader $reader = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/DI/LoaderFactory/DualReaderFactory.php
Expand Up @@ -11,7 +11,7 @@
/**
* @see https://github.com/koriym/Koriym.Attributes
*/
final class DualReaderFactory
class DualReaderFactory
{

public function create(): Reader
Expand Down
2 changes: 1 addition & 1 deletion src/Core/DI/Plugin/PluginManager.php
Expand Up @@ -6,7 +6,7 @@
use Apitte\Core\Exception\Logical\InvalidStateException;
use Nette\PhpGenerator\ClassType;

final class PluginManager
class PluginManager
{

private PluginCompiler $compiler;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/Builder/Controller/Controller.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema\Builder\Controller;

final class Controller
class Controller
{

private string $class;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/Builder/Controller/Method.php
Expand Up @@ -7,7 +7,7 @@
use Apitte\Core\Schema\EndpointRequestBody;
use Apitte\Core\Schema\EndpointResponse;

final class Method
class Method
{

private string $name;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/Endpoint.php
Expand Up @@ -6,7 +6,7 @@
use Apitte\Core\Exception\Logical\InvalidStateException;
use Nette\Utils\Arrays;

final class Endpoint
class Endpoint
{

// Methods
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/EndpointHandler.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema;

final class EndpointHandler
class EndpointHandler
{

/** @var class-string */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/EndpointNegotiation.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema;

final class EndpointNegotiation
class EndpointNegotiation
{

private string $suffix;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/EndpointParameter.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema;

final class EndpointParameter
class EndpointParameter
{

public const TYPE_STRING = 'string';
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/EndpointRequestBody.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema;

final class EndpointRequestBody
class EndpointRequestBody
{

private ?string $description = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/EndpointResponse.php
Expand Up @@ -2,7 +2,7 @@

namespace Apitte\Core\Schema;

final class EndpointResponse
class EndpointResponse
{

private string $code;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/SchemaBuilder.php
Expand Up @@ -4,7 +4,7 @@

use Apitte\Core\Schema\Builder\Controller\Controller;

final class SchemaBuilder
class SchemaBuilder
{

/** @var Controller[] */
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/Serialization/ArrayHydrator.php
Expand Up @@ -12,7 +12,7 @@
use Apitte\Core\Schema\EndpointResponse;
use Apitte\Core\Schema\Schema;

final class ArrayHydrator implements IHydrator
class ArrayHydrator implements IHydrator
{

public function hydrate(mixed $data): Schema
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Schema/Serialization/ArraySerializator.php
Expand Up @@ -11,7 +11,7 @@
use Apitte\Core\Utils\Helpers;
use Apitte\Core\Utils\Regex;

final class ArraySerializator implements ISerializator
class ArraySerializator implements ISerializator
{

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/Schema/Serialization/DebugSchemaDecorator.php
Expand Up @@ -5,7 +5,7 @@
use Apitte\Core\Schema\SchemaBuilder;
use Apitte\Core\Schema\Serialization\IDecorator;

final class DebugSchemaDecorator implements IDecorator
class DebugSchemaDecorator implements IDecorator
{

public function decorate(SchemaBuilder $builder): SchemaBuilder
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/Tracy/BlueScreen/ApiBlueScreen.php
Expand Up @@ -6,7 +6,7 @@
use Tracy\BlueScreen;
use Tracy\Dumper;

final class ApiBlueScreen
class ApiBlueScreen
{

public static function register(BlueScreen $blueScreen): void
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/Tracy/BlueScreen/ValidationBlueScreen.php
Expand Up @@ -7,7 +7,7 @@
use Tracy\BlueScreen;
use Tracy\Helpers;

final class ValidationBlueScreen
class ValidationBlueScreen
{

public static function register(BlueScreen $blueScreen): void
Expand Down
2 changes: 1 addition & 1 deletion src/Debug/Tracy/Panel/ApiPanel.php
Expand Up @@ -5,7 +5,7 @@
use Apitte\Core\Schema\Schema;
use Tracy\IBarPanel;

final class ApiPanel implements IBarPanel
class ApiPanel implements IBarPanel
{

private Schema $schema;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenApi/SchemaType/BaseSchemaType.php
Expand Up @@ -5,7 +5,7 @@
use Apitte\Core\Schema\EndpointParameter;
use Apitte\OpenApi\Schema\Schema;

final class BaseSchemaType implements ISchemaType
class BaseSchemaType implements ISchemaType
{

public function createSchema(EndpointParameter $endpointParameter): Schema
Expand Down

0 comments on commit 4d8b01c

Please sign in to comment.