* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ namespace PrestaShop\Module\AutoUpgrade\Task\Rollback; use PrestaShop\Module\AutoUpgrade\Analytics; use PrestaShop\Module\AutoUpgrade\Task\AbstractTask; use PrestaShop\Module\AutoUpgrade\Task\ExitCode; /** * Only displays the success message. */ class RollbackComplete extends AbstractTask { const TASK_TYPE = 'rollback'; public function run(): int { $this->logger->info($this->translator->trans('Restoration process done. Congratulations! You can now reactivate your shop.')); $this->next = ''; $this->container->getAnalytics()->track('Rollback Succeeded', Analytics::WITH_ROLLBACK_PROPERTIES); $this->container->getState()->setProgressPercentage( $this->container->getCompletionCalculator()->getBasePercentageOfTask(self::class) ); return ExitCode::SUCCESS; } }