harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0344harbor download openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0344Task: Implement the XML export class used by the tests
Description: Create a fully functional XML exporter at /app/ that builds a PHPDocumentor project XML document. The exporter must initialize a DOM with a root element and, during finalization, populate it with deprecations and markers based on data provided by the Parser. The implementation must align with the behavior the tests expect, including how many elements are created and their attributes/text content.
Requirements:
File path and namespace
Class structure
Class Xml
Constructor: __construct(\phpDocumentor\Parser\Parser $parser)
Public methods
Protected helpers (default implementations; overridable by tests)
Behavior details to satisfy tests
Notes:
Outcome: Upon completion, the Xml exporter should precisely build the expected XML structure for both tests when used with the provided mocks, and provide a correct, DOM-backed getDomDocument() result.