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