MongoDBCache   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 *
4
 * PHP version 5.5
5
 *
6
 * @package Cache\Psr
7
 * @author  Sergey V.Kuzin <[email protected]>
8
 * @license MIT
9
 */
10
11
namespace Cache\Psr;
12
13
use Cache\CacheItemPool;
14
use MongoCollection;
15
16
class MongoDBCache extends CacheItemPool
17
{
18
    public function __construct(MongoCollection $collection)
19
    {
20
        parent::__construct(new \Doctrine\Common\Cache\MongoDBCache($collection));
21
    }
22
}
23