當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PHP_Depend_Code_NodeI::getUUID方法代碼示例

本文整理匯總了PHP中PHP_Depend_Code_NodeI::getUUID方法的典型用法代碼示例。如果您正苦於以下問題:PHP PHP_Depend_Code_NodeI::getUUID方法的具體用法?PHP PHP_Depend_Code_NodeI::getUUID怎麽用?PHP PHP_Depend_Code_NodeI::getUUID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PHP_Depend_Code_NodeI的用法示例。


在下文中一共展示了PHP_Depend_Code_NodeI::getUUID方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getStats

 /**
  * Returns the statistics for the requested node.
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return array
  */
 public function getStats(PHP_Depend_Code_NodeI $node)
 {
     if (isset($this->stats[$node->getUUID()])) {
         return $this->stats[$node->getUUID()];
     }
     return array();
 }
開發者ID:noelg,項目名稱:pdepend,代碼行數:14,代碼來源:DependencyAnalyzer.php

示例2: getNodeMetrics

 /**
  * This method will return an <b>array</b> with all generated metric values
  * for the node with the given <b>$uuid</b> identifier. If there are no
  * metrics for the requested node, this method will return an empty <b>array</b>.
  *
  * <code>
  * array(
  *     'npath'  =>  '17'
  * )
  * </code>
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return array(string=>mixed)
  */
 public function getNodeMetrics(PHP_Depend_Code_NodeI $node)
 {
     $metric = array();
     if (isset($this->_metrics[$node->getUUID()])) {
         $metric = array(self::M_NPATH_COMPLEXITY => $this->_metrics[$node->getUUID()]);
     }
     return $metric;
 }
開發者ID:kingsj,項目名稱:core,代碼行數:23,代碼來源:Analyzer.php

示例3: getNodeMetrics

 /**
  * This method will return an <b>array</b> with all generated metric values
  * for the given <b>$node</b> instance. If there are no metrics for the
  * requested node, this method will return an empty <b>array</b>.
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return array(string=>mixed)
  */
 public function getNodeMetrics(PHP_Depend_Code_NodeI $node)
 {
     if (isset($this->_nodeMetrics[$node->getUUID()])) {
         return $this->_nodeMetrics[$node->getUUID()];
     }
     return array();
 }
開發者ID:rouffj,項目名稱:pdepend,代碼行數:16,代碼來源:Analyzer.php

示例4: initNode

 /**
  * Initializes the temporary node container for the given <b>$node</b>.
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return void
  */
 protected function initNode(PHP_Depend_Code_NodeI $node)
 {
     if (!isset($this->_nodes[$node->getUUID()])) {
         $this->_nodes[$node->getUUID()] = array('in' => array(), 'out' => array(), 'name' => $node->getName(), 'type' => get_class($node));
     }
 }
開發者ID:rouffj,項目名稱:pdepend,代碼行數:13,代碼來源:PropertyStrategy.php

示例5: getCycle

 /**
  * Returns an array of nodes that build a cycle for the requested node or it
  * returns <b>null</b> if no cycle exists .
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return array(PHP_Depend_Code_NodeI)
  */
 public function getCycle(PHP_Depend_Code_NodeI $node)
 {
     if (isset($this->_collectedCycles[$node->getUUID()])) {
         return $this->_collectedCycles[$node->getUUID()];
     }
     return null;
 }
開發者ID:noelg,項目名稱:pdepend,代碼行數:15,代碼來源:Analyzer.php

示例6: restoreFromCache

 /**
  * Tries to restore the metrics for a cached node. If this method has
  * restored the metrics it will return <b>TRUE</b>, otherwise the return
  * value will be <b>FALSE</b>.
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return boolean
  */
 protected function restoreFromCache(PHP_Depend_Code_NodeI $node)
 {
     $uuid = $node->getUUID();
     if ($node->isCached() && isset($this->_metricsCached[$uuid])) {
         $this->metrics[$uuid] = $this->_metricsCached[$uuid];
         return true;
     }
     return false;
 }
開發者ID:rouffj,項目名稱:pdepend,代碼行數:18,代碼來源:AbstractCachingAnalyzer.php

示例7: getCycle

 /**
  * Returns an array of nodes that build a cycle for the requested node or it
  * returns <b>null</b> if no cycle exists .
  *
  * @param PHP_Depend_Code_NodeI $node The context node instance.
  *
  * @return array(PHP_Depend_Code_NodeI)
  */
 public function getCycle(PHP_Depend_Code_NodeI $node)
 {
     if (array_key_exists($node->getUUID(), $this->_collectedCycles)) {
         return $this->_collectedCycles[$node->getUUID()];
     }
     $list = array();
     if ($this->collectCycle($list, $node)) {
         $this->_collectedCycles[$node->getUUID()] = $list;
     } else {
         $this->_collectedCycles[$node->getUUID()] = null;
     }
     return $this->_collectedCycles[$node->getUUID()];
 }
開發者ID:rouffj,項目名稱:pdepend,代碼行數:21,代碼來源:Analyzer.php


注:本文中的PHP_Depend_Code_NodeI::getUUID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。