array(
'loc' => 23,
'cloc' => 17,
'eloc' => 17,
'ncloc' => 42
)
public getNodeMetrics ( PDepend\Source\AST\ASTArtifact $artifact ) : array | ||
$artifact | PDepend\Source\AST\ASTArtifact | |
return | array |
public function getNodeMetrics(ASTArtifact $artifact)
{
$metrics = array();
if (isset($this->metrics[$artifact->getId()])) {
$metrics = $this->metrics[$artifact->getId()];
}
return $metrics;
}