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

ConfigurationFactoryFactory   A

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
/**
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