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