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

Breadcrumb

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

function File::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/php-code-coverage/src/Report/Xml/File.php \SebastianBergmann\CodeCoverage\Report\Xml\File::__construct()
  2. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/File.php \PHPUnit\TextUI\Configuration\File::__construct()
  3. 11.1.x vendor/symfony/mime/Part/File.php \Symfony\Component\Mime\Part\File::__construct()
  4. 11.1.x vendor/symfony/validator/Constraints/File.php \Symfony\Component\Validator\Constraints\File::__construct()
  5. 11.1.x vendor/symfony/http-foundation/File/File.php \Symfony\Component\HttpFoundation\File\File::__construct()
  6. 11.1.x vendor/squizlabs/php_codesniffer/src/Files/File.php \PHP_CodeSniffer\Files\File::__construct()
  7. 11.1.x core/modules/file/src/Plugin/views/field/File.php \Drupal\file\Plugin\views\field\File::__construct()

@psalm-param array<int, ?list<non-empty-string>> $lineCoverageData @psalm-param LinesOfCodeType $linesOfCode @psalm-param array<string, CodeUnitClassType> $classes @psalm-param array<string, CodeUnitTraitType> $traits @psalm-param array<string, CodeUnitFunctionType> $functions

Overrides AbstractNode::__construct

File

vendor/phpunit/php-code-coverage/src/Node/File.php, line 147

Class

File
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Node

Code

public function __construct(string $name, AbstractNode $parent, array $lineCoverageData, array $functionCoverageData, array $testData, array $classes, array $traits, array $functions, array $linesOfCode) {
    parent::__construct($name, $parent);
    $this->lineCoverageData = $lineCoverageData;
    $this->functionCoverageData = $functionCoverageData;
    $this->testData = $testData;
    $this->linesOfCode = $linesOfCode;
    $this->calculateStatistics($classes, $traits, $functions);
}

API Navigation

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