setConfig($config); $this->setUri($config->getDocumentationDirectory()); $this->path = $config->getDocumentationDirectory(); } public function getConfig(): Config { return $this->config; } public function setConfig(Config $config) { $this->config = $config; } public function isHotPath(Entry $node = null): bool { if ($node == null) { return true; } if ($this->activeNode == null) { return false; } if ($node == $this->activeNode) { return true; } foreach ($this->activeNode->getParents() as $parent) { if ($node === $parent) { return true; } } return false; } public function setActiveNode(Entry $node) { $this->activeNode = $node; } }