src/phpDocumentor/Plugin/Core/Transformer/Writer/Xml.php
protected function createErrorEntry($error, $parse_errors)
    {
        $marker_obj = new \DOMElement(strtolower($error->getSeverity()));
        $parse_errors->appendChild($marker_obj);

        $message = ($this->getTranslator())
            ? vsprintf($this->getTranslator()->translate($error->getCode()), $error->getContext())
            : $error->getCode();

        $marker_obj->appendChild(new \DOMText($message));
        $marker_obj->setAttribute('line', $error->getLine());
        $marker_obj->setAttribute('code', $error->getCode());
    }
protected function createErrorEntry($error, $parse_errors)
    {
        $marker_obj = new \DOMElement(strtolower($error->getSeverity()));
        $parse_errors->appendChild($marker_obj);

        $message = ($this->getTranslator())
            ? vsprintf($this->getTranslator()->translate($error->getCode()), $error->getContext())
            : $error->getCode();

        $marker_obj->appendChild(new \DOMText($message));
        $marker_obj->setAttribute('line', $error->getLine());
        $marker_obj->setAttribute('code', $error->getCode());
    }
protected function createErrorEntry ( $ error , $ parse_errors ) { $ marker_obj = new \ DOMElement ( strtolower ( $ error -> getSeverity ( ) ) ) ; $ parse_errors -> appendChild ( $ marker_obj ) ; $ message = ( $ this -> getTranslator ( ) ) ? vsprintf ( $ this -> getTranslator ( ) -> translate ( $ error -> getCode ( ) ) , $ error -> getContext ( ) ) : $ error -> getCode ( ) ; $ marker_obj -> appendChild ( new \ DOMText ( $ message ) ) ; $ marker_obj -> setAttribute ( 'line' , $ error -> getLine ( ) ) ; $ marker_obj -> setAttribute ( 'code' , $ error -> getCode ( ) ) ; }
Creates an entry in the ParseErrors collection of a file for a given error.

@param Error       $error
@param \DOMElement $parse_errors

@return void
Creates an entry in the ParseErrors collection of a file for a given error .