CliConfiguratorFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
A createService() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineORMModule\Service;
6
7
use DoctrineORMModule\CliConfigurator;
8
use Interop\Container\ContainerInterface;
9
use Laminas\ServiceManager\FactoryInterface;
10
use Laminas\ServiceManager\ServiceLocatorInterface;
11
12
class CliConfiguratorFactory implements FactoryInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Laminas\ServiceManager\FactoryInterface has been deprecated with message: Use Laminas\ServiceManager\Factory\FactoryInterface instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
13
{
14
    /**
15
     * {@inheritDoc}
16
     */
17
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
18
    {
19
        return new CliConfigurator($container);
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    public function createService(ServiceLocatorInterface $container)
26
    {
27
        return $this($container, CliConfigurator::class);
28
    }
29
}
30