Completed
Push — master ( 1b6594...be51ba )
by Agel_Nash
04:51
created

Database::escape()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 5.0187

Importance

Changes 0
Metric Value
cc 5
eloc 12
nc 4
nop 2
dl 0
loc 19
ccs 10
cts 11
cp 0.9091
crap 5.0187
rs 8.8571
c 0
b 0
f 0
1
<?php namespace AgelxNash\Modx\Evo\Database;
2
3
class Database extends AbstractDatabase
4
{
5
    /**
6
     * @param array $config
7
     * @param string $driver
8
     * @throws Exceptions\Exception
9
     */
10 64
    public function __construct(array $config, $driver = Drivers\MySqliDriver::class)
11
    {
12 64
        $this->setConfig($config);
13 64
        $this->setDriver($driver);
14 64
    }
15
}
16