Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function __construct(PDO $connection) |
||
26 | { |
||
27 | if ($connection->getAttribute(\PDO::ATTR_DRIVER_NAME) != 'sqlite') { |
||
28 | $msg = __CLASS__ . " requires pdo connection to be 'sqlite'"; |
||
29 | throw new Exception\InvalidArgumentException($msg); |
||
30 | } |
||
31 | $this->resource = $connection; |
||
32 | } |
||
33 | |||
42 |