1 | <?php |
||
14 | class CodeIgniterDriver implements DriverInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var \Rougin\Describe\Driver\DriverInterface|null |
||
18 | */ |
||
19 | protected $driver = null; |
||
20 | |||
21 | /** |
||
22 | * Gets the specified driver from the specified database connection. |
||
23 | * |
||
24 | * @param array $database |
||
25 | */ |
||
26 | 18 | public function __construct(array $database) |
|
35 | |||
36 | /** |
||
37 | * Returns the result. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | 12 | public function getTable($table) |
|
45 | |||
46 | /** |
||
47 | * Shows the list of tables. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 6 | public function showTables() |
|
55 | |||
56 | /** |
||
57 | * Returns the driver to be used. |
||
58 | * |
||
59 | * @param array $database |
||
60 | * @return \Rougin\Describe\Driver\DriverInterface|null |
||
61 | * @throws \Rougin\Describe\Exceptions\DatabaseDriverNotFoundException |
||
62 | */ |
||
63 | 18 | protected function getDriver(array $database) |
|
85 | } |
||
86 |