@@ -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']})"); |
@@ -38,7 +38,8 @@ discard block |
||
38 | 38 | * @param string $schema The name of the schema whose tables should be |
39 | 39 | * describled. |
40 | 40 | * @param array<string> An array contianing names of specific tables |
41 | - * who's descriptions should be retrieved. |
|
41 | + * who's descriptions should be retrieved. |
|
42 | + * @param boolean $includeViews |
|
42 | 43 | * @return array<array> |
43 | 44 | */ |
44 | 45 | abstract protected function getTables($schema, $requestedTables, $includeViews); |
@@ -339,6 +340,9 @@ discard block |
||
339 | 340 | } |
340 | 341 | } |
341 | 342 | |
343 | + /** |
|
344 | + * @param string $defaultValue |
|
345 | + */ |
|
342 | 346 | protected function cleanDefaultValue($defaultValue) { |
343 | 347 | return $defaultValue; |
344 | 348 | } |
@@ -126,8 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * |
129 | - * @param boolean $status |
|
130 | - * @param \PDOStatement $result |
|
129 | + * @param \PDOStatement $statement |
|
131 | 130 | */ |
132 | 131 | private function fetchRows($statement) |
133 | 132 | { |
@@ -139,6 +138,9 @@ discard block |
||
139 | 138 | } |
140 | 139 | } |
141 | 140 | |
141 | + /** |
|
142 | + * @param string $query |
|
143 | + */ |
|
142 | 144 | private function prepareQuery($query, $bindData) |
143 | 145 | { |
144 | 146 | $statement = $this->pdo->prepare($query); |
@@ -339,7 +341,7 @@ discard block |
||
339 | 341 | |
340 | 342 | /** |
341 | 343 | * A wrapper around PDO's lastInsertId() method. |
342 | - * @return mixed |
|
344 | + * @return string |
|
343 | 345 | */ |
344 | 346 | public function getLastInsertId() |
345 | 347 | { |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace ntentan\atiaa; |
4 | 4 | |
5 | 5 | use ntentan\atiaa\exceptions\DatabaseDriverException; |
6 | -use ntentan\panie\Container; |
|
7 | -use ntentan\panie\exceptions\ResolutionException; |
|
8 | 6 | |
9 | 7 | /** |
10 | 8 | * A driver class for connecting to a specific database platform. |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace ntentan\atiaa; |
4 | 4 | |
5 | -use ntentan\panie\Container; |
|
6 | -use ntentan\utils\Text; |
|
7 | - |
|
8 | 5 | class DbContext |
9 | 6 | { |
10 | 7 |
@@ -25,8 +25,6 @@ |
||
25 | 25 | |
26 | 26 | namespace ntentan\atiaa\drivers; |
27 | 27 | |
28 | -use ntentan\panie\Container; |
|
29 | - |
|
30 | 28 | /** |
31 | 29 | * SQLite driver implementation |
32 | 30 | */ |