@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * @param integer $column The 0-indexed column number to retrieve. |
582 | 582 | * @param array $types The query parameter types. |
583 | 583 | * |
584 | - * @return mixed|bool False is returned if no rows are found. |
|
584 | + * @return string|boolean False is returned if no rows are found. |
|
585 | 585 | * |
586 | 586 | * @throws \Doctrine\DBAL\DBALException |
587 | 587 | */ |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | /** |
1127 | 1127 | * Fetches the SQLSTATE associated with the last database operation. |
1128 | 1128 | * |
1129 | - * @return integer The last error code. |
|
1129 | + * @return string|null The last error code. |
|
1130 | 1130 | */ |
1131 | 1131 | public function errorCode() |
1132 | 1132 | { |
@@ -1233,7 +1233,7 @@ discard block |
||
1233 | 1233 | * Returns the savepoint name to use for nested transactions are false if they are not supported |
1234 | 1234 | * "savepointFormat" parameter is not set |
1235 | 1235 | * |
1236 | - * @return mixed A string with the savepoint name or false. |
|
1236 | + * @return string A string with the savepoint name or false. |
|
1237 | 1237 | */ |
1238 | 1238 | protected function _getNestedTransactionSavePointName() |
1239 | 1239 | { |
@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | $this->assertBinaryContains('test2'); |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $text |
|
79 | + */ |
|
77 | 80 | private function assertBinaryContains($text) |
78 | 81 | { |
79 | 82 | $rows = $this->_conn->fetchAll('SELECT * FROM blob_table'); |
@@ -87,6 +90,9 @@ discard block |
||
87 | 90 | self::assertEquals($text, stream_get_contents($blobValue)); |
88 | 91 | } |
89 | 92 | |
93 | + /** |
|
94 | + * @param string $text |
|
95 | + */ |
|
90 | 96 | private function assertBlobContains($text) |
91 | 97 | { |
92 | 98 | $rows = $this->_conn->fetchAll('SELECT * FROM blob_table'); |
@@ -185,6 +185,9 @@ discard block |
||
185 | 185 | self::assertEquals(1, count($secondCache->fetch("emptycachekey"))); |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param \Doctrine\DBAL\Driver\Statement $stmt |
|
190 | + */ |
|
188 | 191 | private function hydrateStmt($stmt, $fetchMode = \PDO::FETCH_ASSOC) |
189 | 192 | { |
190 | 193 | $data = array(); |
@@ -195,6 +198,9 @@ discard block |
||
195 | 198 | return $data; |
196 | 199 | } |
197 | 200 | |
201 | + /** |
|
202 | + * @param \Doctrine\DBAL\Driver\Statement $stmt |
|
203 | + */ |
|
198 | 204 | private function hydrateStmtIterator($stmt, $fetchMode = \PDO::FETCH_ASSOC) |
199 | 205 | { |
200 | 206 | $data = array(); |
@@ -874,6 +874,9 @@ discard block |
||
874 | 874 | return $table; |
875 | 875 | } |
876 | 876 | |
877 | + /** |
|
878 | + * @param string $name |
|
879 | + */ |
|
877 | 880 | protected function getTestTable($name, $options = array()) |
878 | 881 | { |
879 | 882 | $table = new Table($name, array(), array(), array(), false, $options); |
@@ -885,6 +888,9 @@ discard block |
||
885 | 888 | return $table; |
886 | 889 | } |
887 | 890 | |
891 | + /** |
|
892 | + * @param string $name |
|
893 | + */ |
|
888 | 894 | protected function getTestCompositeTable($name) |
889 | 895 | { |
890 | 896 | $table = new Table($name, array(), array(), array(), false, array()); |
@@ -896,6 +902,10 @@ discard block |
||
896 | 902 | return $table; |
897 | 903 | } |
898 | 904 | |
905 | + /** |
|
906 | + * @param Table[] $tables |
|
907 | + * @param string $tableName |
|
908 | + */ |
|
899 | 909 | protected function assertHasTable($tables, $tableName) |
900 | 910 | { |
901 | 911 | $foundTable = false; |
@@ -273,6 +273,10 @@ discard block |
||
273 | 273 | } |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @param integer $value1 |
|
278 | + * @param integer $value2 |
|
279 | + */ |
|
276 | 280 | protected function getBitAndComparisonExpressionSql($value1, $value2) |
277 | 281 | { |
278 | 282 | return '(' . $value1 . ' & ' . $value2 . ')'; |
@@ -287,6 +291,10 @@ discard block |
||
287 | 291 | self::assertEquals($this->getBitAndComparisonExpressionSql(2, 4), $sql); |
288 | 292 | } |
289 | 293 | |
294 | + /** |
|
295 | + * @param integer $value1 |
|
296 | + * @param integer $value2 |
|
297 | + */ |
|
290 | 298 | protected function getBitOrComparisonExpressionSql($value1, $value2) |
291 | 299 | { |
292 | 300 | return '(' . $value1 . ' | ' . $value2 . ')'; |