| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 37 | public static function setConnection(string $connection) |
||
| 38 | { |
||
| 39 | $drivers = ['mysql', 'sqlite', 'pgsql']; |
||
| 40 | if (!in_array($connection, $drivers)) { |
||
| 41 | throw ConnectionException::create("Only ['MySQL(mysql)', 'SQLite(sqlite)', 'PgSQL(pgsql)'] are available at the moment..."); |
||
| 42 | } |
||
| 43 | self::$connection = $connection; |
||
| 44 | } |
||
| 65 |