request = $request; } public function execute() : UserChangePasswordResponse { $response = new UserChangePasswordResponse(); $this->request->user->password = $this->request->newPassword; $this->request->user->save(); $response->success = true; return $response; } }