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

ArrayFactory::decorateWithConnectable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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