# ReflectionEnumBackedCase 类

(PHP 8 >= 8.1.0)

## 简介

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

## 类摘要

class ReflectionEnumBackedCase extends ReflectionEnumUnitCase {
/* 继承的常量 */
public const int ReflectionClassConstant::IS_PUBLIC;
public const int ReflectionClassConstant::IS_PROTECTED;
public const int ReflectionClassConstant::IS_PRIVATE;
public const int ReflectionClassConstant::IS_FINAL;
/* 继承的属性 */
public string $name;
public string $class;
/* 方法 */
public __construct(object|string `$class`, string `$constant`)
public getBackingValue(): int|string
/* 继承的方法 */
public ReflectionEnumUnitCase::getEnum(): ReflectionEnum
public ReflectionEnumUnitCase::getValue(): UnitEnum
public static ReflectionClassConstant::export(mixed `$class`, string `$name`, bool `$return` = ?): string
public ReflectionClassConstant::getAttributes(?string `$name` = `null`, int `$flags` = 0): array
public ReflectionClassConstant::getDeclaringClass(): ReflectionClass
public ReflectionClassConstant::getDocComment(): string|false
public ReflectionClassConstant::getModifiers(): int
public ReflectionClassConstant::getName(): string
public ReflectionClassConstant::getType(): ?ReflectionType
public ReflectionClassConstant::getValue(): mixed
public ReflectionClassConstant::hasType(): bool
public ReflectionClassConstant::isDeprecated(): bool
public ReflectionClassConstant::isEnumCase(): bool
public ReflectionClassConstant::isFinal(): bool
public ReflectionClassConstant::isPrivate(): bool
public ReflectionClassConstant::isProtected(): bool
public ReflectionClassConstant::isPublic(): bool
public ReflectionClassConstant::__toString(): string
}

## 参见

- 枚举
- ReflectionEnumUnitCase

## 目录

- ReflectionEnumBackedCase::__construct — Instantiates a ReflectionEnumBackedCase object
- ReflectionEnumBackedCase::getBackingValue — 获取枚举条目回退的标量值

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open