src/Hal/Metric/Helper/MetricClassNameGenerator.php
public static function getName(Node $node)
    {
        return ($node instanceof Node\Stmt\Class_ && $node->isAnonymous()) ?
            'anonymous@' . spl_object_hash($node) :
            $node->namespacedName->toString();
    }
public static function getName(Node $node)
    {
        return ($node instanceof Node\Stmt\Class_ && $node->isAnonymous()) ?
            'anonymous@' . spl_object_hash($node) :
            $node->namespacedName->toString();
    }
@param Node|Node\Stmt\Class_|Node\Stmt\Interface_ $node

@return string