/**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\PropertyDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     if (!$node instanceof Descriptor\PropertyDescriptor) {
         return false;
     }
     $converter = new QualifiedNameToUrlConverter();
     $className = $node->getParent()->getFullyQualifiedStructuralElementName();
     return '/classes/' . $converter->fromClass($className) . '.html#property_' . $node->getName();
 }
 /**
  * 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();
 }
 /**
  * Returns the first part of the URL path that is specific to class constants.
  *
  * @param Descriptor\ConstantDescriptor $node
  *
  * @return string
  */
 private function getUrlPathPrefixForClassConstants($node)
 {
     return '/classes/' . $this->converter->fromClass($node->getParent()->getFullyQualifiedStructuralElementName());
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\PackageDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/packages/' . $converter->fromPackage($node->getFullyQualifiedStructuralElementName()) . '.html';
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\ClassDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return $node instanceof Descriptor\DescriptorAbstract ? '/classes/' . $converter->fromClass($node->getFullyQualifiedStructuralElementName()) . '.html' : false;
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\FileDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/files/' . $converter->fromFile($node->getPath()) . '.html';
 }
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\PropertyDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     $className = $node->getParent()->getFullyQualifiedStructuralElementName();
     return '/classes/' . $converter->fromClass($className) . '.html#property_' . $node->getName();
 }