/** * Get XPath * * @param string $name * @return string */ protected function getXpath($name) { $helper = new License(); if ($this->shouldWriteValue()) { return $helper->getPathsXpath($this->getKey()) . '/' . $this->getHelperSet()->get('commithook_config_file')->path2XmlNode($this->getValue()); } return $helper->getPathsXpath($this->getKey()); }