@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | 130 | * |
| 131 | - * @param $statement |
|
| 131 | + * @param \PDOStatement $statement |
|
| 132 | 132 | * @return mixed |
| 133 | 133 | */ |
| 134 | 134 | private function fetchRows($statement) |
@@ -141,6 +141,9 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $query |
|
| 146 | + */ |
|
| 144 | 147 | private function prepareQuery($query, $bindData) |
| 145 | 148 | { |
| 146 | 149 | $statement = $this->pdo->prepare($query); |
@@ -170,7 +173,7 @@ discard block |
||
| 170 | 173 | * @todo Add a parameter to cache prepared statements so they can be reused easily. |
| 171 | 174 | * |
| 172 | 175 | * @param string $query The query to be executed quoted in PDO style |
| 173 | - * @param array $bindData |
|
| 176 | + * @param boolean $bindData |
|
| 174 | 177 | * @return array <mixed> |
| 175 | 178 | * @throws DatabaseDriverException |
| 176 | 179 | * @internal param $ false|array<mixed> $bindData The data to be bound to the query object. |
@@ -347,7 +350,7 @@ discard block |
||
| 347 | 350 | |
| 348 | 351 | /** |
| 349 | 352 | * A wrapper around PDO's lastInsertId() method. |
| 350 | - * @return mixed |
|
| 353 | + * @return string |
|
| 351 | 354 | */ |
| 352 | 355 | public function getLastInsertId() |
| 353 | 356 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace ntentan\atiaa; |
| 4 | 4 | |
| 5 | -use ntentan\atiaa\exceptions\DatabaseDriverException; |
|
| 6 | -use ntentan\atiaa\exceptions\ConnectionException; |
|
| 7 | 5 | use Psr\Log\LoggerInterface; |
| 6 | +use ntentan\atiaa\exceptions\ConnectionException; |
|
| 7 | +use ntentan\atiaa\exceptions\DatabaseDriverException; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * A driver class for connecting to a specific database platform. |