getUserInput(Updates::UPDATE_TIER, '', UserInput::STRING); } /** * @return void * @throws AjaxException * @throws FieldsValidationException * @throws InvalidArgumentException * @throws IOException */ public function execute(): void { $settings = Factory::getSettingsUpdates(); if($this->isset(Updates::UPDATE_TIER)) $settings->setUpdateTier($this->_getUpdateTier()); $settings->validateFields(); $settings->save(); $this->setResponseMessage('Saved Successfully'); $this->setResponseData($this->isCLI() ? $settings->getDisplayCLI() : $settings->getDisplay()); } }