Back to Hhvm

BuiltinEnumClass

hphp/hack/manual/apis/Classes/HH/BuiltinEnumClass/index.md

latest1.4 KB
Original Source

:::info[Note] This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information. :::

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

Hack
namespace HH;

abstract class BuiltinEnumClass extends BuiltinAbstractEnumClass {...}

Public Methods

Public Methods (HH\BuiltinAbstractEnumClass)

<!-- HHAPIDOC -->