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

ArrayFactory::isValidConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
}