public function setNamespace(ASTNamespace $namespace) { $this->namespace = $namespace; $this->namespaceName = $namespace->getName(); }