# 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 function __construct(object|string `$class`, string `$constant`)
public function getBackingValue(): int|string
/* 继承的方法 */
public function ReflectionEnumUnitCase::getEnum(): ReflectionEnum
public function ReflectionEnumUnitCase::getValue(): UnitEnum
public static function ReflectionClassConstant::export(mixed `$class`, string `$name`, bool `$return` = ?): string
public function ReflectionClassConstant::getAttributes(?string `$name` = `null`, int `$flags` = 0): array
public function ReflectionClassConstant::getDeclaringClass(): ReflectionClass
public function ReflectionClassConstant::getDocComment(): string|false
public function ReflectionClassConstant::getModifiers(): int
public function ReflectionClassConstant::getName(): string
public function ReflectionClassConstant::getType(): ?ReflectionType
public function ReflectionClassConstant::getValue(): mixed
public function ReflectionClassConstant::hasType(): bool
public function ReflectionClassConstant::isDeprecated(): bool
public function ReflectionClassConstant::isEnumCase(): bool
public function ReflectionClassConstant::isFinal(): bool
public function ReflectionClassConstant::isPrivate(): bool
public function ReflectionClassConstant::isProtected(): bool
public function ReflectionClassConstant::isPublic(): bool
public function ReflectionClassConstant::__toString(): string
}

## 参见

- 枚举
- ReflectionEnumUnitCase

## 目录

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

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