PHP 8.1 Enum

Enumerations is now available in PHP 8.1 And we can use it like this:

enum UserStatus 
{
   case PENDING;
   case ENABLED;
   case Disabled;
}