예제 #1
0
파일: Method.php 프로젝트: zerkalica/phpmd
 /**
  * Checks if this node has a suppressed annotation for the given rule
  * instance.
  *
  * @param PHP_PMD_Rule $rule The context rule instance.
  *
  * @return boolean
  */
 public function hasSuppressWarningsAnnotationFor(PHP_PMD_Rule $rule)
 {
     if (parent::hasSuppressWarningsAnnotationFor($rule)) {
         return true;
     }
     return $this->getParentType()->hasSuppressWarningsAnnotationFor($rule);
 }