You are here

public function PHP_CodeCoverage_Report_Node::getPath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getPath()

Return value

string

1 call to PHP_CodeCoverage_Report_Node::getPath()
PHP_CodeCoverage_Report_Node_File::calculateStatistics in vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php
Calculates coverage statistics for the file.

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php, line 94

Class

PHP_CodeCoverage_Report_Node
Base class for nodes in the code coverage information tree.

Code

public function getPath() {
  if ($this->path === null) {
    if ($this->parent === null || $this->parent
      ->getPath() === null || $this->parent
      ->getPath() === false) {
      $this->path = $this->name;
    }
    else {
      $this->path = $this->parent
        ->getPath() . '/' . $this->name;
    }
  }
  return $this->path;
}