HH\BuiltinEnumClass
BuiltinEnumClass contains the utility methods provided by enum classes
Under the hood, an enum class Foo : Bar will extend BuiltinEnumClass<HH\MemberOf<this, Bar>>.
HHVM provides a native implementation for this class. The PHP class definition below is not actually used at run time; it is simply provided for the typechecker and for developer reference.
Interface Synopsis
namespace HH;
abstract class BuiltinEnumClass extends BuiltinAbstractEnumClass {...}
Public Methods
::getValues(): darray<string, T>
Get the values of the public consts defined on this class, indexed by the string name of those consts::valueOf<TEnum super this, TType>(EnumClass\Label<TEnum, TType> $label): MemberOf<TEnum, TType>