コード例 #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);
 }