/** * Initialize a progress bar * * @param mixed $total number of times we're going to call set * @param int $message message to prefix the bar with * @param int $options overrides for default options * * @static * @return string - the progress bar string with 0 progress */ public static function start($total = null, $message = '', $options = array()) { if ($message) { $options['message'] = CLIProgressBar::stripReturns($message); } $options['total'] = $total; $options['start'] = time(); self::reset($options); return self::display(); }