php / 8.1.5 / class.reflectionenumunitcase.html /

The ReflectionEnumUnitCase class

Introduction

(PHP 8 >= 8.1.0)

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

Class synopsis

class ReflectionEnumUnitCase extends ReflectionClassConstant {
/* Inherited constants */
/* 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::isFinal(): bool
public ReflectionClassConstant::isPrivate(): bool
public ReflectionClassConstant::isProtected(): bool
public ReflectionClassConstant::isPublic(): bool
public ReflectionClassConstant::__toString(): string
}

See Also

Table of Contents

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.reflectionenumunitcase.php