ApiGen\Templating\Filters\Helpers\ElementLinkFactory::createForConstant PHP Метод

createForConstant() приватный метод

private createForConstant ( ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface $reflectionConstant, array $classes ) : string
$reflectionConstant ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface
$classes array
Результат 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);
    }