コード例 #1
0
ファイル: Trait.php プロジェクト: n2bh/phpmd
 /**
  * Constructs a new interface wrapper instance.
  *
  * @param PHP_Depend_Code_Trait $node The wrapped interface object.
  */
 public function __construct(ASTTrait $node)
 {
     parent::__construct($node);
 }
コード例 #2
0
ファイル: Class.php プロジェクト: n2bh/phpmd
 /**
  * Constructs a new class wrapper node.
  *
  * @param PHP_Depend_Code_Class $node The wrapped class object.
  */
 public function __construct(ASTClass $node)
 {
     parent::__construct($node);
 }
コード例 #3
0
ファイル: Interface.php プロジェクト: kingsj/core
 /**
  * Constructs a new interface wrapper instance.
  *
  * @param PHP_Depend_Code_Interface $node The wrapped interface object.
  */
 public function __construct(PHP_Depend_Code_Interface $node)
 {
     parent::__construct($node);
 }
コード例 #4
0
ファイル: Class.php プロジェクト: Tjorriemorrie/app
 /**
  * Constructs a new class wrapper node.
  *
  * @param PHP_Depend_Code_Class $node The wrapped class object.
  */
 public function __construct(PHP_Depend_Code_Class $node)
 {
     parent::__construct($node);
 }
コード例 #5
0
ファイル: TooManyMethods.php プロジェクト: kingsj/core
 /**
  * Counts all methods within the given class/interface node.
  *
  * @param PHP_PMD_Node_AbstractType $node The context class node.
  *
  * @return integer
  */
 private function _countMethods(PHP_PMD_Node_AbstractType $node)
 {
     $count = 0;
     foreach ($node->getMethodNames() as $name) {
         if (preg_match($this->_ignoreRegexp, $name) === 0) {
             ++$count;
         }
     }
     return $count;
 }
コード例 #6
0
ファイル: Interface.php プロジェクト: n2bh/phpmd
 /**
  * Constructs a new interface wrapper instance.
  *
  * @param PHP_Depend_Code_Interface $node The wrapped interface object.
  */
 public function __construct(ASTInterface $node)
 {
     parent::__construct($node);
 }