function Totals::__construct
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Totals.php, line 29
Class
- Totals
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function __construct(DOMElement $container) {
$this->container = $container;
$dom = $container->ownerDocument;
$this->linesNode = $dom->createElementNS('https://schema.phpunit.de/coverage/1.0', 'lines');
$this->methodsNode = $dom->createElementNS('https://schema.phpunit.de/coverage/1.0', 'methods');
$this->functionsNode = $dom->createElementNS('https://schema.phpunit.de/coverage/1.0', 'functions');
$this->classesNode = $dom->createElementNS('https://schema.phpunit.de/coverage/1.0', 'classes');
$this->traitsNode = $dom->createElementNS('https://schema.phpunit.de/coverage/1.0', 'traits');
$container->appendChild($this->linesNode);
$container->appendChild($this->methodsNode);
$container->appendChild($this->functionsNode);
$container->appendChild($this->classesNode);
$container->appendChild($this->traitsNode);
}