@@ -31,7 +31,7 @@ public function getName(): string;
3131 * Sets the Primary Key.
3232 *
3333 * @param list<non-empty-string> $columnNames
34- * @param string|false $indexName
34+ * @param non-empty- string|false $indexName
3535 *
3636 * @throws SchemaException
3737 * @since 35.0.0
@@ -40,6 +40,7 @@ public function setPrimaryKey(array $columnNames, string|false $indexName = fals
4040
4141 /**
4242 * @param list<non-empty-lowercase-string> $columnNames
43+ * @param ?non-empty-string $indexName
4344 * @param list<non-empty-lowercase-string> $flags
4445 * @param array<non-empty-lowercase-string, mixed> $options
4546 *
@@ -79,7 +80,7 @@ public function getPrimaryKey(): ?IIndex;
7980 /**
8081 * Drops an index from this table.
8182 *
82- * @param non-empty-lowercase- string $name The index name.
83+ * @param non-empty-string $name The index name.
8384 *
8485 * @throws SchemaException If the index does not exist.
8586 * @since 35.0.0
@@ -89,14 +90,14 @@ public function dropIndex(string $name): self;
8990 /**
9091 * Returns whether this table has an index with the given name.
9192 *
92- * @param non-empty-lowercase- string $name The index name.
93+ * @param non-empty-string $name The index name.
9394 * @since 35.0.0
9495 */
9596 public function hasIndex (string $ name ): bool ;
9697
9798 /**
9899 * @param list<string> $columnNames
99- * @param string|null $indexName
100+ * @param non-empty- string|null $indexName
100101 * @param array<string, mixed> $options
101102 *
102103 * @throws SchemaException
@@ -107,9 +108,9 @@ public function addUniqueIndex(array $columnNames, ?string $indexName = null, ar
107108 /**
108109 * Renames an index.
109110 *
110- * @param non-empty-lowercase- string $oldName The name of the index to rename from.
111- * @param non-empty-lowercase- string|null $newName The name of the index to rename to.
112- * If null is given, the index name will be auto-generated.
111+ * @param non-empty-string $oldName The name of the index to rename from.
112+ * @param non-empty-string|null $newName The name of the index to rename to.
113+ * If null is given, the index name will be auto-generated.
113114 *
114115 * @return self This table instance.
115116 *
@@ -200,6 +201,15 @@ public function getColumns(): array;
200201 */
201202 public function getIndexes (): array ;
202203
204+ /**
205+ * Returns a specific index by name of this table.
206+ *
207+ * @param non-empty-string $name The index name.
208+ * @return IIndex
209+ * @since 35.0.0
210+ */
211+ public function getIndex (string $ name ): IIndex ;
212+
203213 /**
204214 * Adds a foreign key constraint.
205215 *
0 commit comments