createForMethod() public method

public createForMethod ( ApiGen\Contracts\Parser\Reflection\MethodReflectionInterface $method, ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface $class = null ) : string
$method ApiGen\Contracts\Parser\Reflection\MethodReflectionInterface
$class ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
return string
Ejemplo n.º 1
0
 /**
  * @return string
  */
 private function createForMethod(MethodReflectionInterface $reflectionMethod, array $classes)
 {
     return $this->linkBuilder->build($this->elementUrlFactory->createForMethod($reflectionMethod), $reflectionMethod->getDeclaringClassName() . '::' . $reflectionMethod->getName() . '()', FALSE, $classes);
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 public function methodUrl(MethodReflectionInterface $method, ClassReflectionInterface $class = NULL)
 {
     return $this->elementUrlFactory->createForMethod($method, $class);
 }
 /**
  * @return string
  */
 public function methodUrl(ReflectionMethod $method, ReflectionClass $class = NULL)
 {
     return $this->elementUrlFactory->createForMethod($method, $class);
 }