1 | <?php |
||
16 | class DatabaseDriver implements DriverInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $configuration = []; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $driver = ''; |
||
27 | |||
28 | /** |
||
29 | * @param string $driver |
||
30 | * @param array $configuration |
||
31 | */ |
||
32 | 18 | public function __construct($driver, $configuration = []) |
|
37 | |||
38 | /** |
||
39 | * Gets the specified driver from the specified database connection. |
||
40 | * |
||
41 | * @param string $driverName |
||
42 | * @param array $configuration |
||
43 | * @return \Rougin\Describe\Driver\DriverInterface|null |
||
44 | */ |
||
45 | 18 | public function getDriver($driverName, $configuration = []) |
|
88 | |||
89 | /** |
||
90 | * Returns the result. |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | 12 | public function getTable($table) |
|
100 | |||
101 | /** |
||
102 | * Shows the list of tables. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | 6 | public function showTables() |
|
112 | } |
||
113 |