function AbstractNode::processPath
1 call to AbstractNode::processPath()
- AbstractNode::__construct in vendor/
phpunit/ php-code-coverage/ src/ Node/ AbstractNode.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Node/ AbstractNode.php, line 236
Class
- AbstractNode
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\NodeCode
private function processPath() : void {
if ($this->parent === null) {
$this->pathAsArray = [
$this,
];
$this->pathAsString = $this->name;
return;
}
$this->pathAsArray = $this->parent
->pathAsArray();
$this->pathAsString = $this->parent
->pathAsString() . DIRECTORY_SEPARATOR . $this->name;
$this->pathAsArray[] = $this;
}