* @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\Runner; class SingleTask extends ChainedTasks { protected $step; /** @var bool */ private $stepHasRun = false; public function setOptions(array $options): void { if (!empty($options['action'])) { $this->step = $options['action']; } } protected function canContinue(): bool { if (!$this->stepHasRun) { $this->stepHasRun = true; return true; } return false; } }