1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 01:37:23 +01:00
psalm/src/Psalm/Report/XmlReport.php

19 lines
304 B
PHP

<?php
namespace Psalm\Report;
use LSS\Array2XML;
use Psalm\Report;
class XmlReport extends Report
{
/**
* {{@inheritdoc}}
*/
public function create(): string
{
$xml = Array2XML::createXML('report', ['item' => $this->issues_data]);
return $xml->saveXML();
}
}