AbstractEnum
abstract class AbstractEnum implements EnumInterface (View source)
The base enum class that all other enum classes extend from. It does the
heavy lifting of implementing EnumInterface
so that extending enum classes
can focus on defining enums.
Methods
static array
introspect()
Introspects the Enum for its values.
static array
introspectKeys()
Introspects the Enum for its keys.
static bool
hasValue(string $value)
Determines if the value is one of the Enum values of this type.