CacheClientFactory   A
last analyzed

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\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