LegacyControllerOptionsFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
namespace MaglLegacyApplication\Factory;
4
5
use Interop\Container\ContainerInterface;
6
use Laminas\ServiceManager\Factory\FactoryInterface;
7
use MaglLegacyApplication\Options\LegacyControllerOptions;
8
9
class LegacyControllerOptionsFactory implements FactoryInterface
10
{
11
12
    /**
13
     * @inheritDoc
14
     */
15 8
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    {
17 8
        $config = $container->get('Config');
18 8
        $options = $config['magl_legacy_application'];
19
20 8
        return new LegacyControllerOptions($options);
21
    }
22
}
23