request = $request; } public function execute() : ChangeCostUnitStateResponse { $response = new ChangeCostUnitStateResponse(); $this->request->costUnit->allow_new = $this->request->allowNew; $this->request->costUnit->archived = $this->request->isArchived; $response->success = $this->request->costUnit->save(); return $response; } }