public function PHP_CodeCoverage_Report_Node::getPathAsArray in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getPathAsArray()
Return value
array
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node.php, line 110
Class
- PHP_CodeCoverage_Report_Node
- Base class for nodes in the code coverage information tree.
Code
public function getPathAsArray() {
if ($this->pathArray === null) {
if ($this->parent === null) {
$this->pathArray = array();
}
else {
$this->pathArray = $this->parent
->getPathAsArray();
}
$this->pathArray[] = $this;
}
return $this->pathArray;
}