function Directory::numberOfExecutedPaths
Overrides AbstractNode::numberOfExecutedPaths
File
-
vendor/
phpunit/ php-code-coverage/ src/ Node/ Directory.php, line 254
Class
- Directory
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\NodeCode
public function numberOfExecutedPaths() : int {
if ($this->numExecutedPaths === -1) {
$this->numExecutedPaths = 0;
foreach ($this->children as $child) {
$this->numExecutedPaths += $child->numberOfExecutedPaths();
}
}
return $this->numExecutedPaths;
}