@@ -129,6 +129,7 @@ |
||
129 | 129 | |
130 | 130 | /** |
131 | 131 | * @param resource $conn |
132 | + * @param LastInsertId $lastInsertId |
|
132 | 133 | */ |
133 | 134 | public function __construct($conn, string $sql, ?LastInsertId $lastInsertId = null) |
134 | 135 | { |
@@ -748,6 +748,7 @@ discard block |
||
748 | 748 | * Returns a SQL snippet to concatenate the given strings. |
749 | 749 | * |
750 | 750 | * @param string[] ...$string |
751 | + * @param string $string |
|
751 | 752 | */ |
752 | 753 | public function getConcatExpression(string ...$string) : string |
753 | 754 | { |
@@ -1208,7 +1209,7 @@ discard block |
||
1208 | 1209 | /** |
1209 | 1210 | * Returns the SQL to safely drop a temporary table WITHOUT implicitly committing an open transaction. |
1210 | 1211 | * |
1211 | - * @param Table|string $table |
|
1212 | + * @param string $table |
|
1212 | 1213 | */ |
1213 | 1214 | public function getDropTemporaryTableSQL($table) : string |
1214 | 1215 | { |
@@ -1391,6 +1392,9 @@ discard block |
||
1391 | 1392 | ); |
1392 | 1393 | } |
1393 | 1394 | |
1395 | + /** |
|
1396 | + * @param string|null $comment |
|
1397 | + */ |
|
1394 | 1398 | public function getCommentOnColumnSQL(string $tableName, string $columnName, ?string $comment) : string |
1395 | 1399 | { |
1396 | 1400 | $tableName = new Identifier($tableName); |
@@ -1581,7 +1585,7 @@ discard block |
||
1581 | 1585 | /** |
1582 | 1586 | * Returns the SQL to create an unnamed primary key constraint. |
1583 | 1587 | * |
1584 | - * @param Table|string $table |
|
1588 | + * @param string $table |
|
1585 | 1589 | */ |
1586 | 1590 | public function getCreatePrimaryKeySQL(Index $index, $table) : string |
1587 | 1591 | { |
@@ -2517,6 +2521,7 @@ discard block |
||
2517 | 2521 | * requests may be impossible. |
2518 | 2522 | * |
2519 | 2523 | * @throws DBALException If not supported on this platform. |
2524 | + * @param string $currentDatabase |
|
2520 | 2525 | */ |
2521 | 2526 | public function getListTableIndexesSQL(string $table, ?string $currentDatabase = null) : string |
2522 | 2527 | { |
@@ -673,6 +673,7 @@ discard block |
||
673 | 673 | |
674 | 674 | /** |
675 | 675 | * {@inheritdoc} |
676 | + * @param string|null $comment |
|
676 | 677 | */ |
677 | 678 | public function getCommentOnColumnSQL(string $tableName, string $columnName, ?string $comment) : string |
678 | 679 | { |
@@ -724,6 +725,7 @@ discard block |
||
724 | 725 | |
725 | 726 | /** |
726 | 727 | * {@inheritDoc} |
728 | + * @param string $sequence |
|
727 | 729 | */ |
728 | 730 | public function getDropSequenceSQL($sequence) : string |
729 | 731 | { |
@@ -855,6 +857,7 @@ discard block |
||
855 | 857 | * {@inheritDoc} |
856 | 858 | * |
857 | 859 | * Postgres wants boolean values converted to the strings 'true'/'false'. |
860 | + * @param string|boolean $item |
|
858 | 861 | */ |
859 | 862 | public function convertBooleans($item) |
860 | 863 | { |
@@ -864,6 +867,10 @@ discard block |
||
864 | 867 | |
865 | 868 | return $this->doConvertBooleans( |
866 | 869 | $item, |
870 | + |
|
871 | + /** |
|
872 | + * @param string|boolean $boolean |
|
873 | + */ |
|
867 | 874 | static function ($boolean) : string { |
868 | 875 | if ($boolean === null) { |
869 | 876 | return 'NULL'; |
@@ -876,6 +883,7 @@ discard block |
||
876 | 883 | |
877 | 884 | /** |
878 | 885 | * {@inheritDoc} |
886 | + * @param boolean|string $item |
|
879 | 887 | */ |
880 | 888 | public function convertBooleansToDatabaseValue($item) |
881 | 889 | { |
@@ -885,6 +893,10 @@ discard block |
||
885 | 893 | |
886 | 894 | return $this->doConvertBooleans( |
887 | 895 | $item, |
896 | + |
|
897 | + /** |
|
898 | + * @param boolean|string $boolean |
|
899 | + */ |
|
888 | 900 | static function ($boolean) : ?int { |
889 | 901 | return $boolean === null ? null : (int) $boolean; |
890 | 902 | } |
@@ -893,6 +905,7 @@ discard block |
||
893 | 905 | |
894 | 906 | /** |
895 | 907 | * {@inheritDoc} |
908 | + * @param string $item |
|
896 | 909 | */ |
897 | 910 | public function convertFromBoolean($item) : ?bool |
898 | 911 | { |
@@ -328,6 +328,7 @@ discard block |
||
328 | 328 | |
329 | 329 | /** |
330 | 330 | * {@inheritdoc} |
331 | + * @param string|null $comment |
|
331 | 332 | */ |
332 | 333 | public function getCommentOnColumnSQL(string $tableName, string $columnName, ?string $comment) : string |
333 | 334 | { |
@@ -382,6 +383,7 @@ discard block |
||
382 | 383 | * {@inheritdoc} |
383 | 384 | * |
384 | 385 | * Appends SQL Anywhere specific flags if given. |
386 | + * @param string $table |
|
385 | 387 | */ |
386 | 388 | public function getCreateIndexSQL(Index $index, $table) : string |
387 | 389 | { |
@@ -936,6 +938,7 @@ discard block |
||
936 | 938 | |
937 | 939 | /** |
938 | 940 | * {@inheritdoc} |
941 | + * @param string $start |
|
939 | 942 | */ |
940 | 943 | public function getLocateExpression(string $string, string $substring, ?string $start = null) : string |
941 | 944 | { |
@@ -1055,6 +1058,7 @@ discard block |
||
1055 | 1058 | |
1056 | 1059 | /** |
1057 | 1060 | * {@inheritdoc} |
1061 | + * @param string $length |
|
1058 | 1062 | */ |
1059 | 1063 | public function getSubstringExpression(string $string, string $start, ?string $length = null) : string |
1060 | 1064 | { |
@@ -1091,6 +1095,7 @@ discard block |
||
1091 | 1095 | |
1092 | 1096 | /** |
1093 | 1097 | * {@inheritdoc} |
1098 | + * @param string $char |
|
1094 | 1099 | */ |
1095 | 1100 | public function getTrimExpression(string $str, int $mode = TrimMode::UNSPECIFIED, ?string $char = null) : string |
1096 | 1101 | { |
@@ -1335,6 +1340,9 @@ discard block |
||
1335 | 1340 | return $matches[1] . $limitOffsetClause . ' ' . $matches[3]; |
1336 | 1341 | } |
1337 | 1342 | |
1343 | + /** |
|
1344 | + * @param integer $offset |
|
1345 | + */ |
|
1338 | 1346 | private function getTopClauseSQL(?int $limit, ?int $offset) : string |
1339 | 1347 | { |
1340 | 1348 | if ($offset > 0) { |
@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return $this; |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param integer $length |
|
102 | + */ |
|
100 | 103 | public function setLength(?int $length) : self |
101 | 104 | { |
102 | 105 | $this->_length = $length; |
@@ -257,6 +260,9 @@ discard block |
||
257 | 260 | return $this; |
258 | 261 | } |
259 | 262 | |
263 | + /** |
|
264 | + * @param string $comment |
|
265 | + */ |
|
260 | 266 | public function setComment(?string $comment) : self |
261 | 267 | { |
262 | 268 | $this->_comment = $comment; |
@@ -270,7 +276,7 @@ discard block |
||
270 | 276 | } |
271 | 277 | |
272 | 278 | /** |
273 | - * @param mixed $value |
|
279 | + * @param string $value |
|
274 | 280 | */ |
275 | 281 | public function setCustomSchemaOption(string $name, $value) : self |
276 | 282 | { |