Constructor.
string $name:
PHP_CodeCoverage_Report_Node $parent:
array $coverageData:
array $testData:
boolean $cacheTokens:
Overrides PHP_CodeCoverage_Report_Node::__construct
public function __construct($name, PHP_CodeCoverage_Report_Node $parent, array $coverageData, array $testData, $cacheTokens) {
if (!is_bool($cacheTokens)) {
throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(1, 'boolean');
}
parent::__construct($name, $parent);
$this->coverageData = $coverageData;
$this->testData = $testData;
$this->ignoredLines = PHP_CodeCoverage_Util::getLinesToBeIgnored($this
->getPath(), $cacheTokens);
$this->cacheTokens = $cacheTokens;
$this
->calculateStatistics();
}