/** * 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; }