src/Reporter/Coverage/Exporter/Clover.php
protected static function _exportMetrics($xmlDocument, $metrics)
    {
        $data = $metrics->data();
        $xmlMetrics = $xmlDocument->createElement('metrics');
        $xmlMetrics->setAttribute('loc', $data['loc']);
        $xmlMetrics->setAttribute('ncloc', $data['nlloc']);
        $xmlMetrics->setAttribute('statements', $data['lloc']);
        $xmlMetrics->setAttribute('coveredstatements', $data['cloc']);
        return $xmlMetrics;
    }
protected static function _exportMetrics($xmlDocument, $metrics)
    {
        $data = $metrics->data();
        $xmlMetrics = $xmlDocument->createElement('metrics');
        $xmlMetrics->setAttribute('loc', $data['loc']);
        $xmlMetrics->setAttribute('ncloc', $data['nlloc']);
        $xmlMetrics->setAttribute('statements', $data['lloc']);
        $xmlMetrics->setAttribute('coveredstatements', $data['cloc']);
        return $xmlMetrics;
    }
protected static function _exportMetrics ( $ xmlDocument , $ metrics ) { $ data = $ metrics -> data ( ) ; $ xmlMetrics = $ xmlDocument -> createElement ( 'metrics' ) ; $ xmlMetrics -> setAttribute ( 'loc' , $ data [ 'loc' ] ) ; $ xmlMetrics -> setAttribute ( 'ncloc' , $ data [ 'nlloc' ] ) ; $ xmlMetrics -> setAttribute ( 'statements' , $ data [ 'lloc' ] ) ; $ xmlMetrics -> setAttribute ( 'coveredstatements' , $ data [ 'cloc' ] ) ; return $ xmlMetrics ; }
Export the coverage of a metrics.

@param  object $xmlDocument The DOMDocument root node instance.
@return object              The XML file node.
Export the coverage of a metrics .