Exemple #1
0
 /**
  * This method will return the class where the parent method was declared.
  * The returned value will be <b>null</b> if the parent is a function.
  *
  * @return \PDepend\Source\AST\AbstractASTClassOrInterface
  * @since  0.9.5
  */
 public function getDeclaringClass()
 {
     // TODO: Review this for refactoring, maybe create a empty getParent()?
     if ($this->declaringFunction instanceof ASTMethod) {
         return $this->declaringFunction->getParent();
     }
     return null;
 }