SqlitePDOConnection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildDSNString() 0 4 1
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 4/5/15
5
 * Time: 12:32 PM
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace NilPortugues\Cache\Adapter\SQL\Connection;
12
13
/**
14
 * Class SqlitePDOConnection
15
 * @package NilPortugues\Cache\Adapter\SQL\Connection
16
 */
17
class SqlitePDOConnection extends AbstractPDOConnection
18
{
19
    /**
20
     * @var array
21
     */
22
    protected $keys = [
23
        self::PATH,
24
        self::MEMORY,
25
    ];
26
27
    /**
28
     * @var string
29
     */
30
    protected $dsn = 'sqlite:';
31
32
    /**
33
     * @param array $parameters
34
     *
35
     * @return string
36
     */
37
    protected function buildDSNString(array &$parameters)
38
    {
39
        return \str_replace(self::PATH."=", '', parent::buildDSNString($parameters));
40
    }
41
}
42