CacheClientFactory::__invoke()   A
last analyzed

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
namespace PhpCache\CacheClient;
4
5
use PhpCache\IO\CacheIOHandler;
6
use Psr\Container\ContainerInterface;
7
8
/**
9
 * Description of CacheClientFactory.
10
 *
11
 * @author dude920228
12
 */
13
class CacheClientFactory
14
{
15
    public function __invoke(ContainerInterface $contaier)
16
    {
17
        $ioHandler = $contaier->get(CacheIOHandler::class);
18
19
        return new CacheClient($ioHandler);
20
    }
21
}
22