public function setReturnType(Type $newReturnType) { $this->node->returnType = new Node\Name((string) $newReturnType); }