Reflection ReflectionEnumBackedCase 클래스
(PHP 8 >= 8.1.0)
소개
ReflectionEnumBackedCase 클래스는 해당 스칼라가 있는 Enum 지원 케이스에 대한 정보를 보고합니다.
클래스 개요
class ReflectionEnumBackedCase extends ReflectionEnumUnitCase {
/* Inherited constants */
const int ReflectionClassConstant::IS_PUBLIC = 1;
const int ReflectionClassConstant::IS_PROTECTED = 2;
const int ReflectionClassConstant::IS_PRIVATE = 4;
/* Inherited properties */
public string $name;
public string $class;
/* Methods */
public __construct(object|string $class, string $constant)
public getBackingValue(): int|string
/* Inherited methods */
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::getValue(): mixed
public ReflectionClassConstant::isEnumCase(): bool
public ReflectionClassConstant::isFinal(): bool
public ReflectionClassConstant::isPrivate(): bool
public ReflectionClassConstant::isProtected(): bool
public ReflectionClassConstant::isPublic(): bool
public ReflectionClassConstant::__toString(): string
}
기타
목차
- ReflectionEnumBackedCase::__construct — ReflectionEnumBackedCase 개체를 인스턴스화합니다.
- ReflectionEnumBackedCase::getBackingValue — 이 Enum 케이스를 뒷받침하는 스칼라 값을 가져옵니다.