@@ -151,6 +151,7 @@ |
||
151 | 151 | * of a table. Where a RDBMS specifies more details, these are held |
152 | 152 | * in the platformDetails array. |
153 | 153 | * |
154 | + * @param string $database |
|
154 | 155 | * @return array<string, Column> |
155 | 156 | */ |
156 | 157 | public function listTableColumns(string $table, ?string $database = null) : array |
@@ -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 | { |
@@ -64,6 +64,7 @@ |
||
64 | 64 | * @param array<Table> $tables |
65 | 65 | * @param array<Sequence> $sequences |
66 | 66 | * @param array<string> $namespaces |
67 | + * @param SchemaConfig $schemaConfig |
|
67 | 68 | */ |
68 | 69 | public function __construct( |
69 | 70 | array $tables = [], |
@@ -68,6 +68,7 @@ |
||
68 | 68 | * @param array<string, Table> $newTables |
69 | 69 | * @param array<string, TableDiff> $changedTables |
70 | 70 | * @param array<string, Table> $removedTables |
71 | + * @param Schema $fromSchema |
|
71 | 72 | */ |
72 | 73 | public function __construct(array $newTables = [], array $changedTables = [], array $removedTables = [], ?Schema $fromSchema = null) |
73 | 74 | { |
@@ -109,6 +109,7 @@ discard block |
||
109 | 109 | * Sets the Primary Key. |
110 | 110 | * |
111 | 111 | * @param array<int, string> $columnNames |
112 | + * @param string $indexName |
|
112 | 113 | */ |
113 | 114 | public function setPrimaryKey(array $columnNames, ?string $indexName = null) : self |
114 | 115 | { |
@@ -144,6 +145,7 @@ discard block |
||
144 | 145 | * @param array<int, string> $columnNames |
145 | 146 | * @param array<int, string> $flags |
146 | 147 | * @param array<string, mixed> $options |
148 | + * @param string $indexName |
|
147 | 149 | */ |
148 | 150 | public function addIndex(array $columnNames, ?string $indexName = null, array $flags = [], array $options = []) : self |
149 | 151 | { |
@@ -186,6 +188,7 @@ discard block |
||
186 | 188 | /** |
187 | 189 | * @param array<int, string> $columnNames |
188 | 190 | * @param array<string, mixed> $options |
191 | + * @param string $indexName |
|
189 | 192 | */ |
190 | 193 | public function addUniqueIndex(array $columnNames, ?string $indexName = null, array $options = []) : self |
191 | 194 | { |
@@ -308,6 +311,7 @@ discard block |
||
308 | 311 | * @param array<int, string> $localColumnNames |
309 | 312 | * @param array<int, string> $foreignColumnNames |
310 | 313 | * @param array<string, mixed> $options |
314 | + * @param string $name |
|
311 | 315 | */ |
312 | 316 | public function addForeignKeyConstraint($foreignTable, array $localColumnNames, array $foreignColumnNames, array $options = [], ?string $name = null) : self |
313 | 317 | { |
@@ -782,6 +786,7 @@ discard block |
||
782 | 786 | * Normalizes a given identifier. |
783 | 787 | * |
784 | 788 | * Trims quotes and lowercases the given identifier. |
789 | + * @param string|null $identifier |
|
785 | 790 | */ |
786 | 791 | private function normalizeIdentifier(?string $identifier) : string |
787 | 792 | { |
@@ -792,6 +797,9 @@ discard block |
||
792 | 797 | return $this->trimQuotes(strtolower($identifier)); |
793 | 798 | } |
794 | 799 | |
800 | + /** |
|
801 | + * @param string $comment |
|
802 | + */ |
|
795 | 803 | public function setComment(?string $comment) : self |
796 | 804 | { |
797 | 805 | // For keeping backward compatibility with MySQL in previous releases, table comments are stored as options. |
@@ -83,11 +83,11 @@ |
||
83 | 83 | * type and the value undergoes the conversion routines of the mapping type before |
84 | 84 | * being bound. |
85 | 85 | * |
86 | - * @param string|int $param Parameter identifier. For a prepared statement using named placeholders, |
|
86 | + * @param string $param Parameter identifier. For a prepared statement using named placeholders, |
|
87 | 87 | * this will be a parameter name of the form :name. For a prepared statement |
88 | 88 | * using question mark placeholders, this will be the 1-indexed position |
89 | 89 | * of the parameter. |
90 | - * @param mixed $value The value to bind to the parameter. |
|
90 | + * @param string $value The value to bind to the parameter. |
|
91 | 91 | * @param string|int|Type $type Either one of the constants defined in {@link \Doctrine\DBAL\ParameterType} |
92 | 92 | * or a DBAL mapping type name or instance. |
93 | 93 | * |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * Fill the $return variable with class attributes |
143 | 143 | * Based on obj2array function from {@see https://secure.php.net/manual/en/function.get-object-vars.php#47075} |
144 | 144 | * |
145 | - * @return mixed |
|
145 | + * @return stdClass |
|
146 | 146 | */ |
147 | 147 | private static function fillReturnWithClassAttributes(object $var, stdClass $return, int $maxDepth) |
148 | 148 | { |
@@ -331,6 +331,7 @@ |
||
331 | 331 | * doesn't support this feature |
332 | 332 | * |
333 | 333 | * @throws DriverException |
334 | + * @param string $name |
|
334 | 335 | */ |
335 | 336 | private function lastInsertId(?string $name = null) : string |
336 | 337 | { |