ConfigurationFactoryFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arp\LaminasDoctrine\Factory\Service\Configuration;
6
7
use Arp\LaminasDoctrine\Service\Configuration\ConfigurationFactory;
8
use Arp\LaminasFactory\AbstractFactory;
9
use Laminas\ServiceManager\ServiceLocatorInterface;
10
use Psr\Container\ContainerInterface;
11
12
final class ConfigurationFactoryFactory extends AbstractFactory
13
{
14
    /**
15
     * @param ContainerInterface&ServiceLocatorInterface $container
16
     * @param string                                     $requestedName
17
     * @param array<string, mixed>|null                  $options
18
     *
19
     * @return ConfigurationFactory
20
     */
21
    public function __invoke(
22
        ContainerInterface $container,
23
        string $requestedName,
24
        array $options = null
25
    ): ConfigurationFactory {
26
        return new ConfigurationFactory($container);
27
    }
28
}
29