src/Reflection/ReflectionClass.php
public function getName() : string
    {
        if (! $this->inNamespace()) {
            return $this->getShortName();
        }

        return $this->node->namespacedName->toString();
    }
public function getName() : string
    {
        if (! $this->inNamespace()) {
            return $this->getShortName();
        }

        return $this->node->namespacedName->toString();
    }
Get the "full" name of the class (e.g. for A\B\Foo, this will return
"A\B\Foo").