Ejemplo n.º 1
0
 /**
  * Returns a link to method in class summary file.
  *
  * @param \ApiGen\Reflection\ReflectionMethod $method Method reflection
  * @param \ApiGen\Reflection\ReflectionClass $class Method declaring class
  * @return string
  */
 public function getMethodUrl(Reflection\ReflectionMethod $method, Reflection\ReflectionClass $class = null)
 {
     $className = null !== $class ? $class->getName() : $method->getDeclaringClassName();
     return $this->getClassUrl($className) . '#' . ($method->isMagic() ? 'm' : '') . '_' . ($method->getOriginalName() ?: $method->getName());
 }
 /**
  * @return string
  */
 public function createForMethod(ReflectionMethod $method, ReflectionClass $class = NULL)
 {
     $className = $class !== NULL ? $class->getName() : $method->getDeclaringClassName();
     return $this->createForClass($className) . '#' . ($method->isMagic() ? 'm' : '') . '_' . ($method->getOriginalName() ?: $method->getName());
 }