public function PHP_CodeCoverage_Report_Node::getId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getId()
Return value
string
3 calls to PHP_CodeCoverage_Report_Node::getId()
- PHP_CodeCoverage_Report_Node_File::processClasses in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node/ File.php - PHP_CodeCoverage_Report_Node_File::processFunctions in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node/ File.php - PHP_CodeCoverage_Report_Node_File::processTraits in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node/ File.php
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node.php, line 70
Class
- PHP_CodeCoverage_Report_Node
- Base class for nodes in the code coverage information tree.
Code
public function getId() {
if ($this->id === null) {
$parent = $this
->getParent();
if ($parent === null) {
$this->id = 'index';
}
else {
$parentId = $parent
->getId();
if ($parentId == 'index') {
$this->id = str_replace(':', '_', $this->name);
}
else {
$this->id = $parentId . '/' . $this->name;
}
}
}
return $this->id;
}