Skip to content

Commit

Permalink
Mark all classes final
Browse files Browse the repository at this point in the history
  • Loading branch information
trompette committed Jan 30, 2022
1 parent 83de87c commit 7201a10
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion sources/Bundle/FeatureTogglesBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

class FeatureTogglesBundle extends Bundle
final class FeatureTogglesBundle extends Bundle
{
public function getContainerExtensionClass(): string
{
Expand Down
2 changes: 1 addition & 1 deletion sources/Bundle/FeatureTogglesConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

class FeatureTogglesConfiguration implements ConfigurationInterface
final class FeatureTogglesConfiguration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
{
Expand Down
2 changes: 1 addition & 1 deletion sources/Bundle/FeatureTogglesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Trompette\FeatureToggles\ToggleRouter;
use Trompette\FeatureToggles\WhitelistStrategy\Whitelist;

class FeatureTogglesExtension extends Extension
final class FeatureTogglesExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container): void
{
Expand Down
2 changes: 1 addition & 1 deletion sources/Console/ConfigureFeatureCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Trompette\FeatureToggles\ToggleRouterInterface;

class ConfigureFeatureCommand extends Command
final class ConfigureFeatureCommand extends Command
{
private ToggleRouterInterface $toggleRouter;

Expand Down
2 changes: 1 addition & 1 deletion sources/Console/MigrateDBALSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Trompette\FeatureToggles\DBAL\SchemaMigrator;

class MigrateDBALSchemaCommand extends Command
final class MigrateDBALSchemaCommand extends Command
{
/**
* @var SchemaMigrator[]
Expand Down
2 changes: 1 addition & 1 deletion sources/Console/ShowFeatureConfigurationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Trompette\FeatureToggles\FeatureRegistry;
use Trompette\FeatureToggles\ToggleRouterInterface;

class ShowFeatureConfigurationCommand extends Command
final class ShowFeatureConfigurationCommand extends Command
{
private FeatureRegistry $featureRegistry;
private ToggleRouterInterface $toggleRouter;
Expand Down
2 changes: 1 addition & 1 deletion sources/DBAL/OnOffStrategyConfigurationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Doctrine\DBAL\Types\Types;
use Trompette\FeatureToggles\OnOffStrategy\ConfigurationRepository;

class OnOffStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
final class OnOffStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
{
public function isEnabled(string $feature): bool
{
Expand Down
2 changes: 1 addition & 1 deletion sources/DBAL/PercentageStrategyConfigurationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\DBAL\Types\Types;
use Trompette\FeatureToggles\PercentageStrategy\ConfigurationRepository;

class PercentageStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
final class PercentageStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
{
public function getPercentage(string $feature): int
{
Expand Down
2 changes: 1 addition & 1 deletion sources/DBAL/WhitelistStrategyConfigurationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\DBAL\Types\Types;
use Trompette\FeatureToggles\WhitelistStrategy\ConfigurationRepository;

class WhitelistStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
final class WhitelistStrategyConfigurationRepository extends SchemaMigrator implements ConfigurationRepository
{
public function getWhitelistedTargets(string $feature): array
{
Expand Down
2 changes: 1 addition & 1 deletion sources/FeatureDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trompette\FeatureToggles;

class FeatureDefinition
final class FeatureDefinition
{
private string $name;
private string $description;
Expand Down
2 changes: 1 addition & 1 deletion sources/FeatureRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Assert\Assert;

class FeatureRegistry
final class FeatureRegistry
{
/**
* @var array<string, FeatureDefinition>
Expand Down
2 changes: 1 addition & 1 deletion sources/ORM/SchemaSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\Tools\ToolEvents;
use Trompette\FeatureToggles\DBAL\SchemaConfigurator;

class SchemaSubscriber implements EventSubscriber
final class SchemaSubscriber implements EventSubscriber
{
/**
* @var SchemaConfigurator[]
Expand Down
2 changes: 1 addition & 1 deletion sources/OnOffStrategy/OnOff.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Trompette\FeatureToggles\TogglingStrategy;

class OnOff implements TogglingStrategy
final class OnOff implements TogglingStrategy
{
private ConfigurationRepository $configurationRepository;

Expand Down
2 changes: 1 addition & 1 deletion sources/PercentageStrategy/Percentage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Assert\Assert;
use Trompette\FeatureToggles\TogglingStrategy;

class Percentage implements TogglingStrategy
final class Percentage implements TogglingStrategy
{
private ConfigurationRepository $configurationRepository;

Expand Down
2 changes: 1 addition & 1 deletion sources/ToggleRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @property LoggerInterface $logger
*/
class ToggleRouter implements LoggerAwareInterface, ToggleRouterInterface
final class ToggleRouter implements LoggerAwareInterface, ToggleRouterInterface
{
use LoggerAwareTrait;

Expand Down
2 changes: 1 addition & 1 deletion sources/WhitelistStrategy/Whitelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Trompette\FeatureToggles\TogglingStrategy;

class Whitelist implements TogglingStrategy
final class Whitelist implements TogglingStrategy
{
private ConfigurationRepository $configurationRepository;

Expand Down

0 comments on commit 7201a10

Please sign in to comment.