getUserInput(JetBackup::ID_FIELD, 0, UserInput::UINT); } /** * @return void * @throws AjaxException * @throws DBException * @throws DestinationException * @throws IOException * @throws InvalidArgumentException */ public function execute(): void { if(!$this->getId()) throw new AjaxException("No job id provided"); $destination = new Destination($this->getId()); if(!$destination->getId()) throw new AjaxException("Invalid destination id provided"); try { $destination->validate(); } catch(ValidationException $e) { throw new AjaxException($e->getMessage()); } $this->setResponseMessage("Destination validated successfully"); } }