Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
21 | 1 | public function __construct() |
|
22 | { |
||
23 | 1 | $parser = new Parser(); |
|
24 | 1 | $config = $parser->parseFile(__DIR__.'/../../../../config/config.yml')['database']; |
|
25 | 1 | [$params, $username, $password] = $this->createParams($config); |
|
26 | 1 | $this->driver = new PDODriver(); |
|
27 | 1 | $this->conn = $this->driver->connect($params, $username, $password); |
|
28 | 1 | $this->isConnected = true; |
|
29 | 1 | } |
|
48 |