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.'); }
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.'); }