UnitEnum 接口

(PHP 8 >= 8.1.0)

简介

引擎会自动应用 UnitEnum 接口到所有枚举。 用户自定义类不能实现该接口。 由于引擎已提供枚举的默认实现,因此不能重载它的接口。 主要将它用于类型检测。

接口摘要

interface UnitEnum {
/* 方法 */
public static cases(): array
}

目录

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top