ReflectionEnumBackedCase 类

(PHP 8 >= 8.1.0)

简介

ReflectionEnumBackedCase 类报告了一个回退枚举条目(Enum backed case)的信息,具有对应的标量值。

类摘要

class ReflectionEnumBackedCase extends ReflectionEnumUnitCase {
/* 继承的常量 */
/* 继承的属性 */
public string $name;
public string $class;
/* 方法 */
public __construct(object|string $class, string $constant)
public getBackingValue(): int|string
/* 继承的方法 */
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