original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Map error code to severity.
  
  @param int $code
  
  @return string
docstring_tokens: Map error code to severity .