# The ReflectionEnumUnitCase class

(PHP 8 >= 8.1.0)

## Einführung

The ReflectionEnumUnitCase class reports information about an Enum unit case, which has no scalar equivalent.

## Klassenbeschreibung

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* Geerbte Konstanten */
public const int ReflectionClassConstant::IS_PUBLIC;
public const int ReflectionClassConstant::IS_PROTECTED;
public const int ReflectionClassConstant::IS_PRIVATE;
public const int ReflectionClassConstant::IS_FINAL;
/* Geerbte Eigenschaften */
public string $name;
public string $class;
/* Methoden */
public __construct(object|string `$class`, string `$constant`)
public getEnum(): ReflectionEnum
public getValue(): UnitEnum
/* Geerbte Methoden */
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
}

## Siehe auch

- Enumerations
- ReflectionEnumBackedCase

## Inhaltsverzeichnis

- ReflectionEnumUnitCase::__construct — Instantiates a ReflectionEnumUnitCase object
- ReflectionEnumUnitCase::getEnum — Gets the reflection of the enum of this case
- ReflectionEnumUnitCase::getValue — Gets the enum case object described by this reflection object

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