/**
  * 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\ClassDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return $node instanceof Descriptor\DescriptorAbstract ? '/classes/' . $converter->fromClass($node->getFullyQualifiedStructuralElementName()) . '.html' : false;
 }
 /**
  * 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\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();
 }