| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function createPdoInstance() |
||
| 45 | { |
||
| 46 | $driver = $this->getDriverName(); |
||
| 47 | if (in_array($driver, ['imysql'])) { |
||
| 48 | $pdoClass = PDO::className(); |
||
| 49 | return new $pdoClass($this->dsn, $this->username, $this->password, $this->attributes); |
||
| 50 | } else { |
||
| 51 | return parent::createPdoInstance(); |
||
| 52 | } |
||
| 55 |