3535 * charset?: ?non-empty-string,
3636 * collation?: ?non-empty-string,
3737 * default_constraint_name?: non-empty-string,
38+ * enumType?: class-string,
3839 * jsonb?: bool,
3940 * version?: bool,
4041 * }
@@ -277,6 +278,16 @@ public function getMaximumValue(): mixed
277278 return $ this ->_platformOptions ['max ' ] ?? null ;
278279 }
279280
281+ /**
282+ * Returns the enum type used by the column.
283+ *
284+ * @return ?class-string
285+ */
286+ public function getEnumType (): ?string
287+ {
288+ return $ this ->_platformOptions ['enumType ' ] ?? null ;
289+ }
290+
280291 /**
281292 * @internal Should be used only from within the {@see AbstractSchemaManager} class hierarchy.
282293 *
@@ -290,8 +301,8 @@ public function getDefaultConstraintName(): ?string
290301 }
291302
292303 /**
293- * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
294- * instead.
304+ * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()}, {@see getMaximumValue()}
305+ * or {@see getEnumType()} instead.
295306 *
296307 * @return PlatformOptions
297308 */
@@ -301,8 +312,8 @@ public function getPlatformOptions(): array
301312 }
302313
303314 /**
304- * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
305- * instead.
315+ * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()}, {@see getMaximumValue()}
316+ * or {@see getEnumType()} instead.
306317 *
307318 * @param key-of<PlatformOptions> $name
308319 */
@@ -312,8 +323,8 @@ public function hasPlatformOption(string $name): bool
312323 }
313324
314325 /**
315- * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
316- * instead.
326+ * @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()}, {@see getMaximumValue()}
327+ * or {@see getEnumType()} instead.
317328 *
318329 * @param key-of<PlatformOptions> $name
319330 */
@@ -415,6 +426,7 @@ public function edit(): ColumnEditor
415426 ->setCollation ($ this ->getCollation ())
416427 ->setMinimumValue ($ this ->getMinimumValue ())
417428 ->setMaximumValue ($ this ->getMaximumValue ())
429+ ->setEnumType ($ this ->getEnumType ())
418430 ->setDefaultConstraintName ($ this ->getDefaultConstraintName ());
419431 }
420432}
0 commit comments