Completed
Pull Request — master (#15)
by Vytautas
10:02
created

SettingsServiceFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
namespace Svycka\Settings\Service\Factory;
4
5
use Interop\Container\ContainerInterface;
6
use Svycka\Settings\Collection\CollectionsManager;
7
use Svycka\Settings\Service\SettingsService;
8
9
/**
10
 * @author Vytautas Stankus <[email protected]>
11
 * @license MIT
12
 */
13
class SettingsServiceFactory
14
{
15 1
    public function __invoke(ContainerInterface $container)
16
    {
17
        /** @var CollectionsManager $collectionsManager */
18 1
        $collectionsManager = $container->get(CollectionsManager::class);
19
20 1
        return new SettingsService($collectionsManager);
21
    }
22
}
23