public createForConstant ( ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface $constant ) : string | ||
$constant | ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface | |
Résultat | string |
/** * @return string */ private function createForConstant(ConstantReflectionInterface $reflectionConstant, array $classes) { $url = $this->elementUrlFactory->createForConstant($reflectionConstant); if ($reflectionConstant->getDeclaringClassName()) { $text = $reflectionConstant->getDeclaringClassName() . '::' . Html::el('b')->setText($reflectionConstant->getName()); } else { $text = $this->getGlobalConstantName($reflectionConstant); } return $this->linkBuilder->build($url, $text, FALSE, $classes); }
/** * @return string */ public function constantUrl(ConstantReflectionInterface $constant) { return $this->elementUrlFactory->createForConstant($constant); }
/** * @return string */ public function constantUrl(ReflectionConstant $constant) { return $this->elementUrlFactory->createForConstant($constant); }
/** * @return string */ public function getTemplatePathForConstant(ConstantReflectionInterface $element) { return $this->getDestination() . '/' . $this->elementUrlFactory->createForConstant($element); }