ApiGen\Templating\Filters\Helpers\ElementLinkFactory::getGlobalConstantName PHP Method

getGlobalConstantName() private method

private getGlobalConstantName ( ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface $reflectionConstant ) : string
$reflectionConstant ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface
return string
    private function getGlobalConstantName(ConstantReflectionInterface $reflectionConstant)
    {
        if ($reflectionConstant->inNamespace()) {
            return $reflectionConstant->getNamespaceName() . '\\' . Html::el('b')->setText($reflectionConstant->getShortName());
        } else {
            return Html::el('b')->setText($reflectionConstant->getName());
        }
    }