コード例 #1
0
ファイル: TooManyMethods.php プロジェクト: flavius/phpmd
 /**
  * Counts all methods within the given class/interface node.
  *
  *
  * @param \PHPMD\Node\AbstractTypeNode $node
  * @return integer
  */
 private function countMethods(AbstractTypeNode $node)
 {
     $count = 0;
     foreach ($node->getMethodNames() as $name) {
         if (preg_match($this->ignoreRegexp, $name) === 0) {
             ++$count;
         }
     }
     return $count;
 }