ApcuFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAdapter() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of php-cache organization.
5
 *
6
 * (c) 2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Cache\AdapterBundle\Factory;
13
14
use Cache\Adapter\Apcu\ApcuCachePool;
15
16
/**
17
 * @author Tobias Nyholm <[email protected]>
18
 */
19
final class ApcuFactory extends AbstractAdapterFactory
20
{
21
    protected static $dependencies = [
22
        ['requiredClass' => 'Cache\Adapter\Apcu\ApcuCachePool', 'packageName' => 'cache/apcu-adapter'],
23
    ];
24
25
    /**
26
     * {@inheritdoc}
27
     */
28 1
    public function getAdapter(array $config)
29
    {
30 1
        return new ApcuCachePool();
31
    }
32
}
33