src/Enum.php
static function hasKey(string $key): bool
    {
        self::ensureKeyMapLoaded();

        return isset(self::$keyMap[static::class][$key]);
    }
static function hasKey(string $key): bool
    {
        self::ensureKeyMapLoaded();

        return isset(self::$keyMap[static::class][$key]);
    }
static function hasKey ( string $ key ) : bool { self :: ensureKeyMapLoaded ( ) ; return isset ( self :: $ keyMap [ static :: class ] [ $ key ] ) ; }
Check if the given key exists in this enum
Check if the given key exists in this enum