@@ -39,7 +39,8 @@ discard block |
||
39 | 39 | * @param string $schema The name of the schema whose tables should be |
40 | 40 | * describled. |
41 | 41 | * @param array<string> An array contianing names of specific tables |
42 | - * who's descriptions should be retrieved. |
|
42 | + * who's descriptions should be retrieved. |
|
43 | + * @param boolean $includeViews |
|
43 | 44 | * @return array<array> |
44 | 45 | */ |
45 | 46 | abstract protected function getTables($schema, $requestedTables, $includeViews); |
@@ -372,6 +373,9 @@ discard block |
||
372 | 373 | } |
373 | 374 | } |
374 | 375 | |
376 | + /** |
|
377 | + * @param string $defaultValue |
|
378 | + */ |
|
375 | 379 | protected function cleanDefaultValue($defaultValue) |
376 | 380 | { |
377 | 381 | return $defaultValue; |
@@ -65,6 +65,9 @@ |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $unique |
|
70 | + */ |
|
68 | 71 | private function getIndexDetails($table, $unique) |
69 | 72 | { |
70 | 73 | $indices = $this->driver->query("pragma index_list({$table['name']})"); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace ntentan\atiaa; |
4 | 4 | |
5 | -use ntentan\config\Config; |
|
6 | 5 | use ntentan\atiaa\exceptions\DatabaseDriverException; |
6 | +use ntentan\config\Config; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * A driver class for connecting to a specific database platform. |
@@ -114,8 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * |
117 | - * @param boolean $status |
|
118 | - * @param \PDOStatement $result |
|
117 | + * @param \PDOStatement $statement |
|
119 | 118 | */ |
120 | 119 | private function fetchRows($statement) { |
121 | 120 | try { |
@@ -292,7 +291,7 @@ discard block |
||
292 | 291 | |
293 | 292 | /** |
294 | 293 | * A wrapper around PDO's lastInsertId() method. |
295 | - * @return mixed |
|
294 | + * @return string |
|
296 | 295 | */ |
297 | 296 | public function getLastInsertId() { |
298 | 297 | return $this->pdo->lastInsertId(); |