public static function getLevelsForSeverity($severity)
    {
        $levels = 0;

        foreach (static::$ERROR_TYPES as $level => $info) {
            if ($info['severity'] == $severity) {
                $levels |= $level;
            }
        }

        return $levels;
    }
public static function getLevelsForSeverity($severity)
    {
        $levels = 0;

        foreach (static::$ERROR_TYPES as $level => $info) {
            if ($info['severity'] == $severity) {
                $levels |= $level;
            }
        }

        return $levels;
    }
public static function getLevelsForSeverity ( $ severity ) { $ levels = 0 ; foreach ( static :: $ ERROR_TYPES as $ level => $ info ) { if ( $ info [ 'severity' ] == $ severity ) { $ levels |= $ level ; } } return $ levels ; }
Get the the levels for the given severity.

@param string $severity the given severity

@return int
Get the the levels for the given severity .