public static function findFlagStabilityName($level)
    {
        $stability = 'dev';

        /** @var string $stabilityName */
        /** @var int $stabilityLevel */
        foreach (Package::$stabilities as $stabilityName => $stabilityLevel) {
            if ($stabilityLevel === $level) {
                $stability = $stabilityName;

                break;
            }
        }

        return $stability;
    }
public static function findFlagStabilityName($level)
    {
        $stability = 'dev';

        /** @var string $stabilityName */
        /** @var int $stabilityLevel */
        foreach (Package::$stabilities as $stabilityName => $stabilityLevel) {
            if ($stabilityLevel === $level) {
                $stability = $stabilityName;

                break;
            }
        }

        return $stability;
    }
public static function findFlagStabilityName ( $ level ) { $ stability = 'dev' ; /** @var string $stabilityName */ /** @var int $stabilityLevel */ foreach ( Package :: $ stabilities as $ stabilityName => $ stabilityLevel ) { if ( $ stabilityLevel === $ level ) { $ stability = $ stabilityName ; break ; } } return $ stability ; }
Find the stability name with the stability value.

@param int $level The stability level

@return string The stability name
Find the stability name with the stability value .