Skip to content

Commit 7a732ee

Browse files
authored
Merge pull request #707 from driehle/feature/final-classes
Mark `Module`, `ConfigProvider`, option classes and factories as final
2 parents 49b641d + da66832 commit 7a732ee

23 files changed

+23
-23
lines changed

src/ConfigProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Config provider for DoctrineORMModule config
99
*/
10-
class ConfigProvider
10+
final class ConfigProvider
1111
{
1212
/**
1313
* @return mixed[]

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* Base module for Doctrine ORM.
1919
*/
20-
class Module implements
20+
final class Module implements
2121
ControllerProviderInterface,
2222
ConfigProviderInterface,
2323
DependencyIndicatorInterface,

src/Options/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Configuration options for an ORM Configuration
2121
*/
22-
class Configuration extends DBALConfiguration
22+
final class Configuration extends DBALConfiguration
2323
{
2424
/**
2525
* Set the cache key for the metadata cache. Cache key

src/Options/DBALConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* DBAL Connection options
1515
*/
16-
class DBALConnection extends AbstractOptions
16+
final class DBALConnection extends AbstractOptions
1717
{
1818
/**
1919
* Set the configuration key for the Configuration. Configuration key

src/Options/EntityManager.php

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

77
use Laminas\Stdlib\AbstractOptions;
88

9-
class EntityManager extends AbstractOptions
9+
final class EntityManager extends AbstractOptions
1010
{
1111
/**
1212
* Set the configuration key for the Configuration. Configuration key

src/Options/EntityResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use function class_exists;
1111
use function sprintf;
1212

13-
class EntityResolver extends AbstractOptions
13+
final class EntityResolver extends AbstractOptions
1414
{
1515
/**
1616
* Set the configuration key for the EventManager. Event manager key

src/Options/SQLLoggerCollectorOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Configuration options for an collector
1111
*/
12-
class SQLLoggerCollectorOptions extends AbstractOptions
12+
final class SQLLoggerCollectorOptions extends AbstractOptions
1313
{
1414
/** @var string name to be assigned to the collector */
1515
protected string $name = 'orm_default';

src/Options/SecondLevelCacheConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Configuration options for Second Level Cache
1111
*/
12-
class SecondLevelCacheConfiguration extends AbstractOptions
12+
final class SecondLevelCacheConfiguration extends AbstractOptions
1313
{
1414
/**
1515
* Enable the second level cache configuration

src/Service/CliConfiguratorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Interop\Container\ContainerInterface;
99
use Laminas\ServiceManager\Factory\FactoryInterface;
1010

11-
class CliConfiguratorFactory implements FactoryInterface
11+
final class CliConfiguratorFactory implements FactoryInterface
1212
{
1313
/**
1414
* {@inheritDoc}

src/Service/ConfigurationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use function method_exists;
1919
use function sprintf;
2020

21-
class ConfigurationFactory extends DoctrineConfigurationFactory
21+
final class ConfigurationFactory extends DoctrineConfigurationFactory
2222
{
2323
/**
2424
* {@inheritDoc}

src/Service/DBALConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* DBAL Connection ServiceManager factory
2222
*/
23-
class DBALConnectionFactory extends AbstractFactory
23+
final class DBALConnectionFactory extends AbstractFactory
2424
{
2525
/**
2626
* {@inheritDoc}

src/Service/DoctrineObjectHydratorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Interop\Container\ContainerInterface;
99
use Laminas\ServiceManager\Factory\FactoryInterface;
1010

11-
class DoctrineObjectHydratorFactory implements FactoryInterface
11+
final class DoctrineObjectHydratorFactory implements FactoryInterface
1212
{
1313
/**
1414
* {@inheritDoc}

src/Service/EntityManagerAliasCompatFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Factory that provides the `Doctrine\ORM\EntityManager` alias for `doctrine.entitymanager.orm_default`
1313
*/
14-
class EntityManagerAliasCompatFactory implements FactoryInterface
14+
final class EntityManagerAliasCompatFactory implements FactoryInterface
1515
{
1616
/**
1717
* {@inheritDoc}

src/Service/EntityManagerFactory.php

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

1212
use function assert;
1313

14-
class EntityManagerFactory extends AbstractFactory
14+
final class EntityManagerFactory extends AbstractFactory
1515
{
1616
/**
1717
* {@inheritDoc}

src/Service/EntityResolverFactory.php

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

1212
use function assert;
1313

14-
class EntityResolverFactory extends AbstractFactory
14+
final class EntityResolverFactory extends AbstractFactory
1515
{
1616
/**
1717
* {@inheritDoc}

src/Service/MappingCollectorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Service factory responsible for instantiating {@see \DoctrineORMModule\Collector\MappingCollector}
1414
*/
15-
class MappingCollectorFactory extends AbstractFactory
15+
final class MappingCollectorFactory extends AbstractFactory
1616
{
1717
/**
1818
* {@inheritDoc}

src/Service/MigrationsCommandFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Service factory for migrations command
2424
*/
25-
class MigrationsCommandFactory implements FactoryInterface
25+
final class MigrationsCommandFactory implements FactoryInterface
2626
{
2727
private string $commandClassName;
2828

src/Service/ObjectMultiCheckboxFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Factory for {@see ObjectMultiCheckbox}
1414
*/
15-
class ObjectMultiCheckboxFactory implements FactoryInterface
15+
final class ObjectMultiCheckboxFactory implements FactoryInterface
1616
{
1717
/**
1818
* {@inheritDoc}

src/Service/ObjectRadioFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Factory for {@see ObjectRadio}
1414
*/
15-
class ObjectRadioFactory implements FactoryInterface
15+
final class ObjectRadioFactory implements FactoryInterface
1616
{
1717
/**
1818
* {@inheritDoc}

src/Service/ObjectSelectFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Factory for {@see ObjectSelect}
1414
*/
15-
class ObjectSelectFactory implements FactoryInterface
15+
final class ObjectSelectFactory implements FactoryInterface
1616
{
1717
/**
1818
* {@inheritDoc}

src/Service/ReservedWordsCommandFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Interop\Container\ContainerInterface;
1010
use Laminas\ServiceManager\Factory\FactoryInterface;
1111

12-
class ReservedWordsCommandFactory implements FactoryInterface
12+
final class ReservedWordsCommandFactory implements FactoryInterface
1313
{
1414
/**
1515
* {@inheritDoc}

src/Service/RunSqlCommandFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Interop\Container\ContainerInterface;
1010
use Laminas\ServiceManager\Factory\FactoryInterface;
1111

12-
class RunSqlCommandFactory implements FactoryInterface
12+
final class RunSqlCommandFactory implements FactoryInterface
1313
{
1414
/**
1515
* {@inheritDoc}

src/Service/SQLLoggerCollectorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* DBAL Configuration ServiceManager factory
1919
*/
20-
class SQLLoggerCollectorFactory implements FactoryInterface
20+
final class SQLLoggerCollectorFactory implements FactoryInterface
2121
{
2222
protected string $name;
2323

0 commit comments

Comments
 (0)