The ReflectionEnumUnitCase class

Introduction

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

Class synopsis

ReflectionEnumUnitCase
extends ReflectionClassConstant
/* 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 ReflectionEnumUnitCase::__construct(objectstring $class, string $constant)
public ReflectionEnum ReflectionEnumUnitCase::getEnum()
public UnitEnum ReflectionEnumUnitCase::getValue()
/* Inherited methods */
public static string export(mixed $class, string $name, bool $return = ?)
public array getAttributes(stringnull $name = null, int $flags = 0)
public ReflectionClass getDeclaringClass()
public stringfalse getDocComment()
public int getModifiers()
public string getName()
public ReflectionTypenull getType()
public mixed getValue()
public bool hasType()
public bool isDeprecated()
public bool isEnumCase()
public bool isFinal()
public bool isPrivate()
public bool isProtected()
public bool isPublic()
public string __toString()

See Also

Table of Contents