Passed
Pull Request — master (#2)
by Koldo
02:20
created

ClearConfigCacheCommandFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\DevTools\Container;
6
7
use Antidot\DevTools\Application\Command\ClearConfigCache;
8
use Psr\Container\ContainerInterface;
9
10
class ClearConfigCacheCommandFactory
11
{
12
    public function __invoke(ContainerInterface $container): ClearConfigCache
13
    {
14
        return new ClearConfigCache((array)$container->get('config'));
15
    }
16
}
17