/** * Adds a parse error to the system * * @param \phpDocumentor\Parser\Event\LogEvent $data Contains the type, * message, line and code element. * * @return void */ public function addParserMarker($data) { $this->parse_markers[] = array($data->getType(), $data->getMessage(), $data->getLine(), $data->getCode()); }
/** * Dispatches a parser error to be logged. * * @param string $type The logging priority as string * @param string $message 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 */ public function logParserError($type, $code, $line, $variables = array()) { $message = $this->_($code, $variables); $this->log($message, \phpDocumentor\Plugin\Core\Log::ERR); $this->dispatch('parser.log', \phpDocumentor\Parser\Event\LogEvent::createInstance($this)->setMessage($message)->setType($type)->setCode($code)->setLine($line)); }