getMethods() public method

Returns all {@link \PDepend\Source\AST\ASTMethod} objects in this type.
public getMethods ( ) : PDepend\Source\AST\ASTMethod[]
return PDepend\Source\AST\ASTMethod[]
Example #1
0
 /**
  * Calculates the Weight Method Per Class metric.
  *
  * @param  \PDepend\Source\AST\AbstractASTType $type
  * @return integer[]
  * @since  1.0.6
  */
 private function calculateWmci(AbstractASTType $type)
 {
     $ccn = array();
     foreach ($type->getMethods() as $method) {
         $ccn[$method->getName()] = $this->cyclomaticAnalyzer->getCcn2($method);
     }
     return $ccn;
 }