Completed
Pull Request — master (#2)
by Pedro
01:50
created

ArrayFactory   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 34
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
4
namespace Pcelta\Doctrine\Cache\Factory;
5
6
7
use Doctrine\Common\Cache\CacheProvider;
8
use Pcelta\Doctrine\Cache\Entity\Config;
9
10
class ArrayFactory extends AbstractFactory
11
{
12
13
    public function __construct()
14
    {
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function getModuleName()
21
    {
22
        return 'array';
23
    }
24
25
    /**
26
     * @param CacheProvider $cacheProvider
27
     * @return CacheProvider
28
     */
29
    protected function decorateWithConnectable(CacheProvider $cacheProvider)
30
    {
31
        return $cacheProvider;
32
    }
33
34
    /**
35
     * @param Config $config
36
     * @return bool
37
     */
38
    protected function isValidConfig(Config $config)
39
    {
40
        return true;
41
    }
42
43
}