Completed
Push — master ( 515575...4e0394 )
by Vytautas
9s
created

ModuleOptionsFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
3
namespace Svycka\Settings\Options\Factory;
4
5
use Interop\Container\ContainerInterface;
6
use Svycka\Settings\Options\ModuleOptions;
7
8
/**
9
 * @author Vytautas Stankus <[email protected]>
10
 * @license MIT
11
 */
12
final class ModuleOptionsFactory
13
{
14 1
    public function __invoke(ContainerInterface $container)
15
    {
16 1
        return new ModuleOptions($container->get('config')['sv-settings']);
17
    }
18
}
19