ConfigurationFactoryFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 3
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