original_string: public function logParserError($type, $code, $line, $variables = array())
      {
          $message = $this->__($code, $variables);
          $this->log($message, LogLevel::ERROR);
          $this->dispatch(
              'parser.log',
              LogEvent::createInstance($this)
                  ->setMessage($message)
                  ->setType($type)
                  ->setCode($code)
                  ->setLine($line)
          );
      }
code: public function logParserError($type, $code, $line, $variables = array())
      {
          $message = $this->__($code, $variables);
          $this->log($message, LogLevel::ERROR);
          $this->dispatch(
              'parser.log',
              LogEvent::createInstance($this)
                  ->setMessage($message)
                  ->setType($type)
                  ->setCode($code)
                  ->setLine($line)
          );
      }
code_tokens: public function logParserError ( $ type , $ code , $ line , $ variables = array ( ) ) { $ message = $ this -> __ ( $ code , $ variables ) ; $ this -> log ( $ message , LogLevel :: ERROR ) ; $ this -> dispatch ( 'parser.log' , LogEvent :: createInstance ( $ this ) -> setMessage ( $ message ) -> setType ( $ type ) -> setCode ( $ code ) -> setLine ( $ line ) ) ; }
docstring: Dispatches a parser error to be logged.
  
  @param string   $type      The logging priority as string
  @param string   $code      The message to log.
  @param string   $line      The line number where the error occurred..
  @param string[] $variables an array with message substitution variables.
  
  @return void
docstring_tokens: Dispatches a parser error to be logged .