| @@ -138,6 +138,7 @@ discard block | ||
| 138 | 138 | |
| 139 | 139 | /** | 
| 140 | 140 |       * {@inheritDoc} | 
| 141 | + * @param string $connectionName | |
| 141 | 142 | */ | 
| 142 | 143 | public function connect($connectionName = null) | 
| 143 | 144 |      { | 
| @@ -196,7 +197,7 @@ discard block | ||
| 196 | 197 | * | 
| 197 | 198 | * @param string $connectionName | 
| 198 | 199 | * | 
| 199 | - * @return \Doctrine\DBAL\Driver | |
| 200 | + * @return Driver\Connection | |
| 200 | 201 | */ | 
| 201 | 202 | protected function connectTo($connectionName) | 
| 202 | 203 |      { | 
| @@ -142,6 +142,7 @@ | ||
| 142 | 142 | /** | 
| 143 | 143 | * @param \Doctrine\DBAL\Driver $driver | 
| 144 | 144 | * @param \Exception $driverEx | 
| 145 | + * @param string $msg | |
| 145 | 146 | * | 
| 146 | 147 | * @return \Doctrine\DBAL\DBALException | 
| 147 | 148 | */ | 
| @@ -209,6 +209,8 @@ discard block | ||
| 209 | 209 | |
| 210 | 210 | /** | 
| 211 | 211 |       * {@inheritdoc} | 
| 212 | + * @param string $date1 | |
| 213 | + * @param string $date2 | |
| 212 | 214 | */ | 
| 213 | 215 | public function getDateDiffExpression($date1, $date2) | 
| 214 | 216 |      { | 
| @@ -245,6 +247,7 @@ discard block | ||
| 245 | 247 | |
| 246 | 248 | /** | 
| 247 | 249 |       * {@inheritdoc} | 
| 250 | + * @param string $tableName | |
| 248 | 251 | */ | 
| 249 | 252 | public function getTruncateTableSQL($tableName, $cascade = false) | 
| 250 | 253 |      { | 
| @@ -329,6 +332,7 @@ discard block | ||
| 329 | 332 | |
| 330 | 333 | /** | 
| 331 | 334 |       * {@inheritDoc} | 
| 335 | + * @param string $table | |
| 332 | 336 | */ | 
| 333 | 337 | public function getListTableIndexesSQL($table, $currentDatabase = null) | 
| 334 | 338 |      { | 
| @@ -353,6 +357,7 @@ discard block | ||
| 353 | 357 | |
| 354 | 358 | /** | 
| 355 | 359 |       * {@inheritDoc} | 
| 360 | + * @param string $table | |
| 356 | 361 | */ | 
| 357 | 362 | public function getListTableForeignKeysSQL($table) | 
| 358 | 363 |      { | 
| @@ -387,6 +392,8 @@ discard block | ||
| 387 | 392 | |
| 388 | 393 | /** | 
| 389 | 394 |       * {@inheritDoc} | 
| 395 | + * @param string $name | |
| 396 | + * @param string $sql | |
| 390 | 397 | */ | 
| 391 | 398 | public function getCreateViewSQL($name, $sql) | 
| 392 | 399 |      { | 
| @@ -395,6 +402,7 @@ discard block | ||
| 395 | 402 | |
| 396 | 403 | /** | 
| 397 | 404 |       * {@inheritDoc} | 
| 405 | + * @param string $name | |
| 398 | 406 | */ | 
| 399 | 407 | public function getDropViewSQL($name) | 
| 400 | 408 |      { | 
| @@ -403,6 +411,7 @@ discard block | ||
| 403 | 411 | |
| 404 | 412 | /** | 
| 405 | 413 |       * {@inheritDoc} | 
| 414 | + * @param string $database | |
| 406 | 415 | */ | 
| 407 | 416 | public function getCreateDatabaseSQL($database) | 
| 408 | 417 |      { | 
| @@ -411,6 +420,7 @@ discard block | ||
| 411 | 420 | |
| 412 | 421 | /** | 
| 413 | 422 |       * {@inheritDoc} | 
| 423 | + * @param string $database | |
| 414 | 424 | */ | 
| 415 | 425 | public function getDropDatabaseSQL($database) | 
| 416 | 426 |      { | 
| @@ -795,6 +805,8 @@ discard block | ||
| 795 | 805 | |
| 796 | 806 | /** | 
| 797 | 807 |       * {@inheritDoc} | 
| 808 | + * @param string $str | |
| 809 | + * @param string $substr | |
| 798 | 810 | */ | 
| 799 | 811 | public function getLocateExpression($str, $substr, $startPos = false) | 
| 800 | 812 |      { | 
| @@ -807,6 +819,9 @@ discard block | ||
| 807 | 819 | |
| 808 | 820 | /** | 
| 809 | 821 |       * {@inheritDoc} | 
| 822 | + * @param string $value | |
| 823 | + * @param integer $from | |
| 824 | + * @param integer $length | |
| 810 | 825 | */ | 
| 811 | 826 | public function getSubstringExpression($value, $from, $length = null) | 
| 812 | 827 |      { | 
| @@ -837,6 +852,7 @@ discard block | ||
| 837 | 852 |       * {@inheritDoc} | 
| 838 | 853 | * | 
| 839 | 854 | * DB2 returns all column names in SQL result sets in uppercase. | 
| 855 | + * @param string $column | |
| 840 | 856 | */ | 
| 841 | 857 | public function getSQLResultCasing($column) | 
| 842 | 858 |      { | 
| @@ -444,6 +444,7 @@ | ||
| 444 | 444 | |
| 445 | 445 | /** | 
| 446 | 446 |       * {@inheritDoc} | 
| 447 | + * @param string $table | |
| 447 | 448 | */ | 
| 448 | 449 | protected function getDropPrimaryKeySQL($table) | 
| 449 | 450 |      { | 
| @@ -487,7 +487,7 @@ discard block | ||
| 487 | 487 | * @param string $table | 
| 488 | 488 | * @param integer $start | 
| 489 | 489 | * | 
| 490 | - * @return array | |
| 490 | + * @return string[] | |
| 491 | 491 | */ | 
| 492 | 492 | public function getCreateAutoincrementSql($name, $table, $start = 1) | 
| 493 | 493 |      { | 
| @@ -551,7 +551,7 @@ discard block | ||
| 551 | 551 | * | 
| 552 | 552 | * @param string $table The table name to drop the autoincrement for. | 
| 553 | 553 | * | 
| 554 | - * @return array | |
| 554 | + * @return string[] | |
| 555 | 555 | */ | 
| 556 | 556 | public function getDropAutoincrementSql($table) | 
| 557 | 557 |      { | 
| @@ -684,6 +684,7 @@ discard block | ||
| 684 | 684 | |
| 685 | 685 | /** | 
| 686 | 686 |       * {@inheritDoc} | 
| 687 | + * @param string $sequence | |
| 687 | 688 | */ | 
| 688 | 689 | public function getDropSequenceSQL($sequence) | 
| 689 | 690 |      { | 
| @@ -881,6 +882,7 @@ discard block | ||
| 881 | 882 | |
| 882 | 883 | /** | 
| 883 | 884 |       * {@inheritdoc} | 
| 885 | + * @param string $name | |
| 884 | 886 | */ | 
| 885 | 887 | public function getColumnDeclarationSQL($name, array $field) | 
| 886 | 888 |      { | 
| @@ -939,6 +941,8 @@ discard block | ||
| 939 | 941 | |
| 940 | 942 | /** | 
| 941 | 943 |       * {@inheritdoc} | 
| 944 | + * @param string $tableName | |
| 945 | + * @param string $columnName | |
| 942 | 946 | */ | 
| 943 | 947 | public function getIdentitySequenceName($tableName, $columnName) | 
| 944 | 948 |      { | 
| @@ -1169,6 +1173,7 @@ discard block | ||
| 1169 | 1173 | |
| 1170 | 1174 | /** | 
| 1171 | 1175 |       * {@inheritdoc} | 
| 1176 | + * @param string $str | |
| 1172 | 1177 | */ | 
| 1173 | 1178 | public function quoteStringLiteral($str) | 
| 1174 | 1179 |      { | 
| @@ -81,6 +81,7 @@ discard block | ||
| 81 | 81 | |
| 82 | 82 | /** | 
| 83 | 83 |       * {@inheritDoc} | 
| 84 | + * @param boolean $from | |
| 84 | 85 | */ | 
| 85 | 86 | public function getSubstringExpression($value, $from, $length = null) | 
| 86 | 87 |      { | 
| @@ -192,6 +193,8 @@ discard block | ||
| 192 | 193 | |
| 193 | 194 | /** | 
| 194 | 195 |       * {@inheritdoc} | 
| 196 | + * @param string $tableName | |
| 197 | + * @param string $columnName | |
| 195 | 198 | */ | 
| 196 | 199 | public function getIdentitySequenceName($tableName, $columnName) | 
| 197 | 200 |      { | 
| @@ -668,6 +671,9 @@ discard block | ||
| 668 | 671 | |
| 669 | 672 | /** | 
| 670 | 673 |       * {@inheritdoc} | 
| 674 | + * @param string $tableName | |
| 675 | + * @param string $columnName | |
| 676 | + * @param string|null $comment | |
| 671 | 677 | */ | 
| 672 | 678 | public function getCommentOnColumnSQL($tableName, $columnName, $comment) | 
| 673 | 679 |      { | 
| @@ -60,6 +60,7 @@ discard block | ||
| 60 | 60 | |
| 61 | 61 | /** | 
| 62 | 62 |       * {@inheritdoc} | 
| 63 | + * @param string $fromClause | |
| 63 | 64 | */ | 
| 64 | 65 | public function appendLockHint($fromClause, $lockMode) | 
| 65 | 66 |      { | 
| @@ -82,6 +83,7 @@ discard block | ||
| 82 | 83 |       * {@inheritdoc} | 
| 83 | 84 | * | 
| 84 | 85 | * SQL Anywhere supports a maximum length of 128 bytes for identifiers. | 
| 86 | + * @param string $schemaElementName | |
| 85 | 87 | */ | 
| 86 | 88 | public function fixSchemaElementName($schemaElementName) | 
| 87 | 89 |      { | 
| @@ -364,6 +366,9 @@ discard block | ||
| 364 | 366 | |
| 365 | 367 | /** | 
| 366 | 368 |       * {@inheritdoc} | 
| 369 | + * @param string $tableName | |
| 370 | + * @param string $columnName | |
| 371 | + * @param string|null $comment | |
| 367 | 372 | */ | 
| 368 | 373 | public function getCommentOnColumnSQL($tableName, $columnName, $comment) | 
| 369 | 374 |      { | 
| @@ -402,6 +407,7 @@ discard block | ||
| 402 | 407 | |
| 403 | 408 | /** | 
| 404 | 409 |       * {@inheritdoc} | 
| 410 | + * @param string $database | |
| 405 | 411 | */ | 
| 406 | 412 | public function getCreateDatabaseSQL($database) | 
| 407 | 413 |      { | 
| @@ -442,6 +448,8 @@ discard block | ||
| 442 | 448 | |
| 443 | 449 | /** | 
| 444 | 450 |       * {@inheritdoc} | 
| 451 | + * @param string $name | |
| 452 | + * @param string $sql | |
| 445 | 453 | */ | 
| 446 | 454 | public function getCreateViewSQL($name, $sql) | 
| 447 | 455 |      { | 
| @@ -488,6 +496,8 @@ discard block | ||
| 488 | 496 | |
| 489 | 497 | /** | 
| 490 | 498 |       * {@inheritdoc} | 
| 499 | + * @param string $date1 | |
| 500 | + * @param string $date2 | |
| 491 | 501 | */ | 
| 492 | 502 | public function getDateDiffExpression($date1, $date2) | 
| 493 | 503 |      { | 
| @@ -536,6 +546,7 @@ discard block | ||
| 536 | 546 | |
| 537 | 547 | /** | 
| 538 | 548 |       * {@inheritdoc} | 
| 549 | + * @param string $database | |
| 539 | 550 | */ | 
| 540 | 551 | public function getDropDatabaseSQL($database) | 
| 541 | 552 |      { | 
| @@ -580,6 +591,7 @@ discard block | ||
| 580 | 591 | |
| 581 | 592 | /** | 
| 582 | 593 |       * {@inheritdoc} | 
| 594 | + * @param string $name | |
| 583 | 595 | */ | 
| 584 | 596 | public function getDropViewSQL($name) | 
| 585 | 597 |      { | 
| @@ -690,6 +702,7 @@ discard block | ||
| 690 | 702 | |
| 691 | 703 | /** | 
| 692 | 704 |       * {@inheritdoc} | 
| 705 | + * @param string $name | |
| 693 | 706 | */ | 
| 694 | 707 | public function getIndexDeclarationSQL($name, Index $index) | 
| 695 | 708 |      { | 
| @@ -717,6 +730,7 @@ discard block | ||
| 717 | 730 | |
| 718 | 731 | /** | 
| 719 | 732 |       * {@inheritdoc} | 
| 733 | + * @param string $table | |
| 720 | 734 | */ | 
| 721 | 735 | public function getListTableColumnsSQL($table, $database = null) | 
| 722 | 736 |      { | 
| @@ -749,6 +763,7 @@ discard block | ||
| 749 | 763 |       * {@inheritdoc} | 
| 750 | 764 | * | 
| 751 | 765 | * @todo Where is this used? Which information should be retrieved? | 
| 766 | + * @param string $table | |
| 752 | 767 | */ | 
| 753 | 768 | public function getListTableConstraintsSQL($table) | 
| 754 | 769 |      { | 
| @@ -771,6 +786,7 @@ discard block | ||
| 771 | 786 | |
| 772 | 787 | /** | 
| 773 | 788 |       * {@inheritdoc} | 
| 789 | + * @param string $table | |
| 774 | 790 | */ | 
| 775 | 791 | public function getListTableForeignKeysSQL($table) | 
| 776 | 792 |      { | 
| @@ -857,6 +873,7 @@ discard block | ||
| 857 | 873 | |
| 858 | 874 | /** | 
| 859 | 875 |       * {@inheritdoc} | 
| 876 | + * @param string $table | |
| 860 | 877 | */ | 
| 861 | 878 | public function getListTableIndexesSQL($table, $currentDatabase = null) | 
| 862 | 879 |      { | 
| @@ -949,6 +966,8 @@ discard block | ||
| 949 | 966 | |
| 950 | 967 | /** | 
| 951 | 968 |       * {@inheritdoc} | 
| 969 | + * @param string $str | |
| 970 | + * @param string $substr | |
| 952 | 971 | */ | 
| 953 | 972 | public function getLocateExpression($str, $substr, $startPos = false) | 
| 954 | 973 |      { | 
| @@ -969,6 +988,7 @@ discard block | ||
| 969 | 988 | |
| 970 | 989 | /** | 
| 971 | 990 |       * {@inheritdoc} | 
| 991 | + * @param string $column | |
| 972 | 992 | */ | 
| 973 | 993 | public function getMd5Expression($column) | 
| 974 | 994 |      { | 
| @@ -1064,6 +1084,9 @@ discard block | ||
| 1064 | 1084 | |
| 1065 | 1085 | /** | 
| 1066 | 1086 |       * {@inheritdoc} | 
| 1087 | + * @param string $value | |
| 1088 | + * @param integer $from | |
| 1089 | + * @param integer $length | |
| 1067 | 1090 | */ | 
| 1068 | 1091 | public function getSubstringExpression($value, $from, $length = null) | 
| 1069 | 1092 |      { | 
| @@ -1100,6 +1123,7 @@ discard block | ||
| 1100 | 1123 | |
| 1101 | 1124 | /** | 
| 1102 | 1125 |       * {@inheritdoc} | 
| 1126 | + * @param string $str | |
| 1103 | 1127 | */ | 
| 1104 | 1128 | public function getTrimExpression($str, $pos = self::TRIM_UNSPECIFIED, $char = false) | 
| 1105 | 1129 |      { | 
| @@ -1130,6 +1154,7 @@ discard block | ||
| 1130 | 1154 | |
| 1131 | 1155 | /** | 
| 1132 | 1156 |       * {@inheritdoc} | 
| 1157 | + * @param string $tableName | |
| 1133 | 1158 | */ | 
| 1134 | 1159 | public function getTruncateTableSQL($tableName, $cascade = false) | 
| 1135 | 1160 |      { | 
| @@ -1067,7 +1067,7 @@ discard block | ||
| 1067 | 1067 | /** | 
| 1068 | 1068 | * @param \Doctrine\DBAL\Schema\TableDiff $diff | 
| 1069 | 1069 | * | 
| 1070 | - * @return array | |
| 1070 | + * @return ForeignKeyConstraint[] | |
| 1071 | 1071 | */ | 
| 1072 | 1072 | private function getForeignKeysInAlteredTable(TableDiff $diff) | 
| 1073 | 1073 |      { | 
| @@ -1117,7 +1117,7 @@ discard block | ||
| 1117 | 1117 | /** | 
| 1118 | 1118 | * @param \Doctrine\DBAL\Schema\TableDiff $diff | 
| 1119 | 1119 | * | 
| 1120 | - * @return array | |
| 1120 | + * @return Index[] | |
| 1121 | 1121 | */ | 
| 1122 | 1122 | private function getPrimaryIndexInAlteredTable(TableDiff $diff) | 
| 1123 | 1123 |      { | 
| @@ -1573,6 +1573,7 @@ | ||
| 1573 | 1573 |       * {@inheritdoc} | 
| 1574 | 1574 | * | 
| 1575 | 1575 | * Modifies column declaration order as it differs in Microsoft SQL Server. | 
| 1576 | + * @param string $name | |
| 1576 | 1577 | */ | 
| 1577 | 1578 | public function getColumnDeclarationSQL($name, array $field) | 
| 1578 | 1579 |      { |