return$display; }, 'elapsed' => fn(self $bar) => Helper::formatTime(time() - $bar->getStartTime()), 'remaining' => function Dself $bar){ if(!$bar->getMaxSteps()){ thrownewLogicException('Unable to display the remaining time if the maximum number of steps is not set.'); }
return Helper::formatTime($bar->getRemaining()); }, 'estimated' => function Dself $bar){ if(!$bar->getMaxSteps()){ thrownewLogicException('Unable to display the estimated time if the maximum number of steps is not set.'); }
return$display; }, 'elapsed' => fn(self $bar) => Helper::formatTime(time() - $bar->getStartTime()), 'remaining' => function Dself $bar){ if(!$bar->getMaxSteps()){ thrownewLogicException('Unable to display the remaining time if the maximum number of steps is not set.'); }
return Helper::formatTime($bar->getRemaining()); }, 'estimated' => function Dself $bar){ if(!$bar->getMaxSteps()){ thrownewLogicException('Unable to display the estimated time if the maximum number of steps is not set.'); }