private function getConstantFqnName(ConstantReflectionInterface $reflection) { $class = $reflection->getDeclaringClassName() ?: $reflection->getNamespaceName(); return $class . '\\' . $reflection->getName(); }