Exemplo n.º 1
0
 /**
  * @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());
     }
 }
Exemplo n.º 2
0
 /**
  * @return string
  */
 private function getConstantFqnName(ConstantReflectionInterface $reflection)
 {
     $class = $reflection->getDeclaringClassName() ?: $reflection->getNamespaceName();
     return $class . '\\' . $reflection->getName();
 }