Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class AbstractFactory implements ProviderFactoryInterface |
||
15 | { |
||
16 | abstract protected function getProvider(array $config): ProviderInterface; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function createProvider(array $options = []): ProviderInterface |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public static function validate(array $options, $providerName): void |
||
48 | } |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * By default we do not have any options to configure. |
||
53 | * A factory should override this function and configure the options resolver. |
||
54 | */ |
||
55 | protected static function configureOptionResolver(OptionsResolver $resolver): void |
||
59 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.