function AbstractNode::processId
1 call to AbstractNode::processId()
- AbstractNode::__construct in vendor/
phpunit/ php-code-coverage/ src/ Node/ AbstractNode.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Node/ AbstractNode.php, line 219
Class
- AbstractNode
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\NodeCode
private function processId() : void {
if ($this->parent === null) {
$this->id = 'index';
return;
}
$parentId = $this->parent
->id();
if ($parentId === 'index') {
$this->id = str_replace(':', '_', $this->name);
}
else {
$this->id = $parentId . '/' . $this->name;
}
}