/** * Constructs a new interface wrapper instance. * * @param PHP_Depend_Code_Trait $node The wrapped interface object. */ public function __construct(ASTTrait $node) { parent::__construct($node); }
/** * Constructs a new class wrapper node. * * @param PHP_Depend_Code_Class $node The wrapped class object. */ public function __construct(ASTClass $node) { parent::__construct($node); }
/** * 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); }
/** * 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); }
/** * 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; }
/** * Constructs a new interface wrapper instance. * * @param PHP_Depend_Code_Interface $node The wrapped interface object. */ public function __construct(ASTInterface $node) { parent::__construct($node); }