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

Database::save()   A

Complexity

Conditions 4
Paths 6

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 4

Importance

Changes 0
Metric Value
cc 4
eloc 9
nc 6
nop 3
dl 0
loc 15
ccs 8
cts 8
cp 1
crap 4
rs 9.2
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