The ReflectionEnumBackedCase class
From Get docs
Php/docs/latest/class.reflectionenumbackedcase
The ReflectionEnumBackedCase class
Introduction
(PHP 8 >= 8.1.0)
The ReflectionEnumBackedCase class reports information about an Enum backed case, which has a scalar equivalent.
Class synopsis
class ReflectionEnumBackedCase extends ReflectionEnumUnitCase 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 getBackingValue(): string|int
/* Inherited methods */
public ReflectionEnumUnitCase::getEnum(): ReflectionEnum
public ReflectionEnumUnitCase::getValue(): UnitEnum
}
See Also
Table of Contents
- ReflectionEnumBackedCase::getBackingValue — Gets the scalar value backing this Enum case
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.reflectionenumbackedcase.php
/* Inherited constants */