Completed
Push — master ( 9da291...9cb0b0 )
by Pedro
9s
created

ArrayFactory   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 4
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 34
ccs 6
cts 8
cp 0.75
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getModuleName() 0 4 1
A decorateWithConnectable() 0 4 1
A isValidConfig() 0 4 1
1
<?php
2
3
namespace Pcelta\Doctrine\Cache\Factory;
4
5
use Doctrine\Common\Cache\CacheProvider;
6
use Pcelta\Doctrine\Cache\Entity\Config;
7
8
class ArrayFactory extends AbstractFactory
9
{
10 2
    public function __construct()
11
    {
12 2
    }
13
14
    /**
15
     * @return string
16
     */
17
    public function getModuleName()
18
    {
19
        return 'array';
20
    }
21
22
    /**
23
     * @param CacheProvider $cacheProvider
24
     *
25
     * @return CacheProvider
26
     */
27 2
    protected function decorateWithConnectable(CacheProvider $cacheProvider)
28
    {
29 2
        return $cacheProvider;
30
    }
31
32
    /**
33
     * @param Config $config
34
     *
35
     * @return bool
36
     */
37 2
    protected function isValidConfig(Config $config)
38
    {
39 2
        return true;
40
    }
41
}
42