public function getNamespaceDeclaration() { $ns = $this->reflection->getNamespace(); if ($ns) { return 'namespace ' . $this->reflection->getNamespace() . ';'; } return ''; }