Completed
Pull Request — master (#9)
by Vytautas
10:39 queued 07:17
created

ModuleOptionsFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

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