/** * Returns a link to property in class summary file. * * @param \ApiGen\Reflection\ReflectionProperty $property Property reflection * @param \ApiGen\Reflection\ReflectionClass $class Property declaring class * @return string */ public function getPropertyUrl(Reflection\ReflectionProperty $property, Reflection\ReflectionClass $class = null) { $className = null !== $class ? $class->getName() : $property->getDeclaringClassName(); return $this->getClassUrl($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName(); }
/** * @return string */ public function createForProperty(ReflectionProperty $property, ReflectionClass $class = NULL) { $className = $class !== NULL ? $class->getName() : $property->getDeclaringClassName(); return $this->createForClass($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName(); }