| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class Mysql extends Driver |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @param $config |
||
| 10 | */ |
||
| 11 | 2 | public function __construct($config) |
|
| 12 | { |
||
| 13 | 2 | $this->config = $config; |
|
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @codeCoverageIgnore |
||
| 18 | */ |
||
| 19 | public function open() |
||
| 20 | { |
||
| 21 | return new PDO($this->getDsn(), $this->config['username'], $this->config['password'], $this->getOptions()); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 1 | protected function getDsn() |
|
| 30 | } |
||
| 31 | } |
||
| 32 |