/**
  * Returns the first part of the URL path that is specific to global constants.
  *
  * @param Descriptor\ConstantDescriptor $node
  *
  * @return string
  */
 private function getUrlPathPrefixForGlobalConstants($node)
 {
     return '/namespaces/' . $this->converter->fromNamespace($node->getNamespace());
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\FunctionDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/namespaces/' . $converter->fromNamespace($node->getNamespace()) . '.html#function_' . $node->getName();
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\NamespaceDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/namespaces/' . $converter->fromNamespace($node->getFullyQualifiedStructuralElementName()) . '.html';
 }