LoggerHelperFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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
/**
16
 * Factory for LoggerHelper
17
 */
18
class LoggerHelperFactory
19
{
20
    /**
21
     * @param ContainerInterface $container
22
     *
23
     * @return LoggerHelper
24
     */
25
    public function __invoke(ContainerInterface $container)
26
    {
27
        return new LoggerHelper($container->get(LoggerInterface::class));
28
    }
29
}
30