public static function getKey(string $value): string
    {
        self::assertIsValidValue($value);

        return (string) array_search($value, static::toArray(), true);
    }
public static function getKey(string $value): string
    {
        self::assertIsValidValue($value);

        return (string) array_search($value, static::toArray(), true);
    }
public static function getKey ( string $ value ) : string { self :: assertIsValidValue ( $ value ) ; return ( string ) array_search ( $ value , static :: toArray ( ) , true ) ; }
Return Enum Key for requested Value.

@param string $value

@throws \InvalidArgumentException

@return string
Return Enum Key for requested Value .