function CodeUnitFindingVisitor::processTrait
1 call to CodeUnitFindingVisitor::processTrait()
- CodeUnitFindingVisitor::enterNode in vendor/
phpunit/ php-code-coverage/ src/ StaticAnalysis/ CodeUnitFindingVisitor.php - Called when entering a node.
File
-
vendor/
phpunit/ php-code-coverage/ src/ StaticAnalysis/ CodeUnitFindingVisitor.php, line 241
Class
- CodeUnitFindingVisitor
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\StaticAnalysisCode
private function processTrait(Trait_ $node) : void {
$name = $node->name
->toString();
$namespacedName = $node->namespacedName
->toString();
$this->traits[$namespacedName] = [
'name' => $name,
'namespacedName' => $namespacedName,
'namespace' => $this->namespace($namespacedName, $name),
'startLine' => $node->getStartLine(),
'endLine' => $node->getEndLine(),
'methods' => [],
];
}