Passed
Push — master ( 79bf3c...52a24b )
by Alex
01:04 queued 13s
created

ConfigurationFactoryFactory::__invoke()   A

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
/**
13
 * @author  Alex Patterson <[email protected]>
14
 * @package Arp\LaminasDoctrine\Factory\Service
15
 */
16
final class ConfigurationFactoryFactory extends AbstractFactory
17
{
18
    /**
19
     * @param ContainerInterface&ServiceLocatorInterface $container
20
     * @param string                                     $requestedName
21
     * @param array<string, mixed>|null                  $options
22
     *
23
     * @return ConfigurationFactory
24
     */
25
    public function __invoke(
26
        ContainerInterface $container,
27
        string $requestedName,
28
        array $options = null
29
    ): ConfigurationFactory {
30
        return new ConfigurationFactory($container);
31
    }
32
}
33