Passed
Push — master ( e91f52...9735a0 )
by Ma
09:13
created

LoggerHelperFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
/**
4
 * Aist Console (http://mateuszsitek.com/projects/console)
5
 *
6
 * @copyright Copyright (c) 2017 DIGITAL WOLVES LTD (http://digitalwolves.ltd) All rights reserved.
7
 * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
8
 */
9
10
namespace Aist\Console\Helper\Logger;
11
12
use Interop\Container\ContainerInterface;
13
use Psr\Log\LoggerInterface;
14
15
class LoggerHelperFactory
16
{
17
    public function __invoke(ContainerInterface $container)
18
    {
19
        return new LoggerHelper($container->get(LoggerInterface::class));
20
    }
21
}
22