@@ -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']})"); |
@@ -66,6 +66,7 @@ discard block |
||
| 66 | 66 | * describled. |
| 67 | 67 | * @param array<string> An array contianing names of specific tables |
| 68 | 68 | * who's descriptions should be retrieved. |
| 69 | + * @param boolean $includeViews |
|
| 69 | 70 | * |
| 70 | 71 | * @return array<array> |
| 71 | 72 | */ |
@@ -392,6 +393,9 @@ discard block |
||
| 392 | 393 | } |
| 393 | 394 | } |
| 394 | 395 | |
| 396 | + /** |
|
| 397 | + * @param string $defaultValue |
|
| 398 | + */ |
|
| 395 | 399 | protected function cleanDefaultValue($defaultValue) |
| 396 | 400 | { |
| 397 | 401 | return $defaultValue; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * @param $statement |
|
| 164 | + * @param \PDOStatement $statement |
|
| 165 | 165 | * |
| 166 | 166 | * @return mixed |
| 167 | 167 | */ |
@@ -176,6 +176,9 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $query |
|
| 181 | + */ |
|
| 179 | 182 | private function prepareQuery($query, $bindData) |
| 180 | 183 | { |
| 181 | 184 | $statement = $this->pdo->prepare($query); |
@@ -400,7 +403,7 @@ discard block |
||
| 400 | 403 | /** |
| 401 | 404 | * A wrapper around PDO's lastInsertId() method. |
| 402 | 405 | * |
| 403 | - * @return mixed |
|
| 406 | + * @return string |
|
| 404 | 407 | */ |
| 405 | 408 | public function getLastInsertId() |
| 406 | 409 | { |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace ntentan\atiaa; |
| 28 | 28 | |
| 29 | +use Psr\Log\LoggerInterface; |
|
| 29 | 30 | use ntentan\atiaa\exceptions\ConnectionException; |
| 30 | 31 | use ntentan\atiaa\exceptions\DatabaseDriverException; |
| 31 | -use Psr\Log\LoggerInterface; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * A driver class for connecting to a specific database platform. |