/** * 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\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(); }