Exemplo n.º 1
0
Arquivo: Trait.php Projeto: 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);
 }
Exemplo n.º 2
0
Arquivo: Class.php Projeto: 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);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 /**
  * 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;
 }
Exemplo n.º 6
0
 /**
  * Constructs a new interface wrapper instance.
  *
  * @param PHP_Depend_Code_Interface $node The wrapped interface object.
  */
 public function __construct(ASTInterface $node)
 {
     parent::__construct($node);
 }