addMethodDefinition() public method

public addMethodDefinition ( SensioLabs\DeprecationDetector\FileInfo\MethodDefinition $methodDefinition )
$methodDefinition SensioLabs\DeprecationDetector\FileInfo\MethodDefinition
 /**
  * {@inheritdoc}
  */
 public function enterNode(Node $node)
 {
     if ($node instanceof Node\Stmt\ClassLike) {
         if (isset($node->namespacedName)) {
             $this->parentName = $node->namespacedName->toString();
         } else {
             $this->parentName = $node->name;
         }
     }
     if ($node instanceof Node\Stmt\ClassMethod) {
         $methodDefinition = new MethodDefinition($node->name, $this->parentName, $node->getLine());
         $this->phpFileInfo->addMethodDefinition($methodDefinition);
     }
 }