PHP Conference Japan 2024

ReflectionEnumUnitCase 類別

(PHP 8 >= 8.1.0)

簡介

ReflectionEnumUnitCase 類別會回報關於列舉單元案例的資訊,該案例沒有純量對應項。

類別概要

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* 繼承的常數 */
/* 繼承的屬性 */
公開 字串 $name;
公開 字串 $class;
/* 方法 */
公開 __construct(物件|字串 $class, 字串 $constant)
公開 getValue(): UnitEnum
/* 繼承的方法 */
公開 靜態 ReflectionClassConstant::export(混合 $class, 字串 $name, 布林值 $return = ?): 字串
}

目錄

新增註解

使用者提供的註解

此頁面沒有使用者提供的註解。
To Top