Passed
Push — master ( f0c8d3...7cbfe3 )
by Krisztián
05:50 queued 02:45
created

CacheDataLoggerFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * All rights reserved © 2018 Legow Hosting Kft.
5
 */
6
7
namespace PhpCache\Logger;
8
9
/**
10
 * Description of CacheDataLoggerFactory.
11
 *
12
 * @author kdudas
13
 */
14
class CacheDataLoggerFactory
15
{
16
    public function __invoke($container)
17
    {
18
        $config = $container->getConfig();
19
20
        return new CacheDataLogger($config['logFilePath']);
21
    }
22
}
23