protected function mapCodeToSeverity($code)
    {
        if (is_int($code) && $this->translator->translate('VAL:ERRLVL-'.$code)) {
            $severity = $this->translator->translate('VAL:ERRLVL-'.$code);
        } else {
             $severity = LogLevel::ERROR;
        }

        return $severity;
    }
protected function mapCodeToSeverity($code)
    {
        if (is_int($code) && $this->translator->translate('VAL:ERRLVL-'.$code)) {
            $severity = $this->translator->translate('VAL:ERRLVL-'.$code);
        } else {
             $severity = LogLevel::ERROR;
        }

        return $severity;
    }
protected function mapCodeToSeverity ( $ code ) { if ( is_int ( $ code ) && $ this -> translator -> translate ( 'VAL:ERRLVL-' . $ code ) ) { $ severity = $ this -> translator -> translate ( 'VAL:ERRLVL-' . $ code ) ; } else { $ severity = LogLevel :: ERROR ; } return $ severity ; }
Map error code to severity.

@param int $code

@return string
Map error code to severity .