public function enterNode(\PHPParser_Node $node)
{
parent::enterNode($node);
switch ($node->getType()) {
case 'Stmt_Class':
$this->currentClass = $this->getNamespacedName($node);
$this->enterClassNode($node);
break;
case 'Stmt_Interface':
$this->currentClass = $this->getNamespacedName($node);
$this->enterInterfaceNode($node);
break;
case 'Stmt_Trait':
$this->currentClass = $this->getNamespacedName($node);
$this->enterTraitNode($node);
break;
case 'Stmt_ClassMethod':
if ($node->isPublic()) {
$this->currentMethod = $node->name;
$this->enterPublicMethodNode($node);
}
break;
}
}