The ReflectionEnumBackedCase class

Introduction

The ReflectionEnumBackedCase class reports information about an Enum backed case, which has a scalar equivalent.

Class synopsis

ReflectionEnumBackedCase
extends ReflectionEnumUnitCase
/* Inherited constants */
public const int ReflectionClassConstant::IS_PUBLIC;
public const int ReflectionClassConstant::IS_PROTECTED;
public const int ReflectionClassConstant::IS_PRIVATE;
public const int ReflectionClassConstant::IS_FINAL;
/* Inherited properties */
public string $name;
public string $class;
/* Methods */
public ReflectionEnumBackedCase::__construct(objectstring $class, string $constant)
public intstring ReflectionEnumBackedCase::getBackingValue()
/* Inherited methods */
public ReflectionEnum getEnum()
public UnitEnum getValue()
public static string ReflectionClassConstant::export(mixed $class, string $name, bool $return = ?)
public array ReflectionClassConstant::getAttributes(stringnull $name = null, int $flags = 0)
public ReflectionClass ReflectionClassConstant::getDeclaringClass()
public stringfalse ReflectionClassConstant::getDocComment()
public int ReflectionClassConstant::getModifiers()
public string ReflectionClassConstant::getName()
public mixed ReflectionClassConstant::getValue()
public bool ReflectionClassConstant::isEnumCase()
public bool ReflectionClassConstant::isFinal()
public bool ReflectionClassConstant::isPrivate()
public bool ReflectionClassConstant::isProtected()
public bool ReflectionClassConstant::isPublic()
public string ReflectionClassConstant::__toString()

See Also

Table of Contents