ApiGen\Templating\Filters\Helpers\ElementLinkFactory::getGlobalConstantName PHP 메소드

getGlobalConstantName() 개인적인 메소드

private getGlobalConstantName ( ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface $reflectionConstant ) : string
$reflectionConstant ApiGen\Contracts\Parser\Reflection\ConstantReflectionInterface
리턴 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());
        }
    }