Reflection ReflectionEnumUnitCase 클래스

(PHP 8 >= 8.1.0)


소개

ReflectionEnumUnitCase 클래스는 상응하는 스칼라가 없는 Enum 단위 케이스에 대한 정보를 보고합니다.


클래스 개요

                  
class ReflectionEnumUnitCase extends ReflectionClassConstant {

  /* 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 getEnum(): ReflectionEnum
  public getValue(): UnitEnum

  /* Inherited methods */
  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
}
                  
                

기타


목차