The ReflectionEnumUnitCase class
From Get docs
Php/docs/latest/class.reflectionenumunitcase
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 implements Reflector {
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 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|false
public ReflectionClassConstant::getValue(): mixed
public ReflectionClassConstant::isPrivate(): bool
public ReflectionClassConstant::isProtected(): bool
public ReflectionClassConstant::isPublic(): bool
public ReflectionClassConstant::__toString(): string
}
See Also
Table of Contents
- ReflectionEnumUnitCase::getEnum — Gets the reflection of the enum of this case
- ReflectionEnumUnitCase::getValue — Gets the enum case object described by this reflection object
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.reflectionenumunitcase.php
/* Inherited constants */