PDepend\Metrics\Analyzer\InheritanceAnalyzer::visitClass PHP Method

visitClass() public method

Visits a class node.
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void
$class PDepend\Source\AST\ASTClass
return void
    public function visitClass(ASTClass $class)
    {
        if (!$class->isUserDefined()) {
            return;
        }
        $this->fireStartClass($class);
        $this->initNodeMetricsForClass($class);
        $this->calculateNumberOfDerivedClasses($class);
        $this->calculateNumberOfAddedAndOverwrittenMethods($class);
        $this->calculateDepthOfInheritanceTree($class);
        $this->fireEndClass($class);
    }