ReflectionEnumUnitCase 类

(PHP 8 >= 8.1.0)

简介

ReflectionEnumUnitCase 类报告了 Enum 单元条目, 不包含对应的标量。

类摘要

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* 继承的常量 */
/* 继承的属性 */
public string $name;
public string $class;
/* 方法 */
public __construct(object|string $class, string $constant)
public getValue(): UnitEnum
/* 继承的方法 */
public static ReflectionClassConstant::export(mixed $class, string $name, bool $return = ?): string
public ReflectionClassConstant::getAttributes(?string $name = null, int $flags = 0): array
}

目录

add a note

User Contributed Notes

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