Exemplo n.º 1
0
 /**
  * Initializes the node metric record for the given <b>$type</b>.
  *
  * @param \PDepend\Source\AST\AbstractASTClassOrInterface $type
  * @return void
  */
 protected function initTypeMetric(AbstractASTClassOrInterface $type)
 {
     $id = $type->getId();
     if (!isset($this->nodeMetrics[$id])) {
         $this->nodeSet[$id] = $type;
         $this->nodeMetrics[$id] = array(self::M_AFFERENT_COUPLING => array(), self::M_EFFERENT_COUPLING => array());
     }
 }