fingerprintId = (int)$this->getUrlParamInt('fingerprintId'); } public function handle(): void { parent::handle(); if ($this->response->getStatus() !== ServerStatus::OK) { return; } try { $fingerprint = new Fingerprint($this->fingerprintId); $fingerprint->Delete(); $this->response = new ApiJsonResponse(); } catch (Throwable $e) { $this->response = new ApiJsonResponse(ServerStatus::BAD_REQUEST); $this->response->setParameter('success', false); $this->response->setMessage($e->getMessage()); } } }