Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Totals.php

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\Xml

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal