Passed
Push — master ( 7cbfe3...bc244d )
by Krisztián
05:18
created

CacheDataLoggerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
3
namespace PhpCache\Example\Logger;
4
5
/*
6
 * All rights reserved © 2018 Legow Hosting Kft.
7
 */
8
9
use PhpCache\Example\Logger\CacheDataLogger;
10
11
/**
12
 * Description of CacheDataLoggerFactory.
13
 *
14
 * @author kdudas
15
 */
16
class CacheDataLoggerFactory
17
{
18
    public function __invoke($container)
19
    {
20
        $config = $container->getConfig();
21
22
        return new CacheDataLogger($config['logFilePath']);
23
    }
24
}
25