public function getNamespaceName() { if (!$this->inNamespace()) { return ''; } return implode('\\', $this->declaringNamespace->name->parts); }