public static function getKey($enumValue = '')
    {
        foreach (self::all() as $key => $value) {
            if (strtolower($value) == strtolower($enumValue)) {
                return $key;
            }
        }

        return null;
    }
public static function getKey($enumValue = '')
    {
        foreach (self::all() as $key => $value) {
            if (strtolower($value) == strtolower($enumValue)) {
                return $key;
            }
        }

        return null;
    }
public static function getKey ( $ enumValue = '' ) { foreach ( self :: all ( ) as $ key => $ value ) { if ( strtolower ( $ value ) == strtolower ( $ enumValue ) ) { return $ key ; } } return null ; }
Return a key from a value

@param string $enumValue
@return array $keys
@throws ReflectionException
Return a key from a value