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