| 1 | <?php |
||
| 5 | class AdapterFactory |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Get an adapter from an existing connection |
||
| 10 | * |
||
| 11 | * @param \PDO|\mysqli $connection database connection object |
||
| 12 | * @throws Exception\InvalidArgumentException |
||
| 13 | * @return \Soluble\DbWrapper\Adapter\MysqlAdapter |
||
| 14 | */ |
||
| 15 | 3 | public static function createAdapterFromConnection($connection) |
|
| 34 | } |
||
| 35 |