public function progressBarCommand(): void
    {
        $i     = 0;
        $total = 120;
        $bar   = new ProgressBar();
        $bar->start(120);

        while ($i <= $total) {
            $bar->advance();
            usleep(50000);
            $i++;
        }

        $bar->finish();
    }
public function progressBarCommand(): void
    {
        $i     = 0;
        $total = 120;
        $bar   = new ProgressBar();
        $bar->start(120);

        while ($i <= $total) {
            $bar->advance();
            usleep(50000);
            $i++;
        }

        $bar->finish();
    }
public function progressBarCommand ( ) : void { $ i = 0 ; $ total = 120 ; $ bar = new ProgressBar ( ) ; $ bar -> start ( 120 ) ; while ( $ i <= $ total ) { $ bar -> advance ( ) ; usleep ( 50000 ) ; $ i ++ ; } $ bar -> finish ( ) ; }
a progress bar example show, by class ProgressBar
@throws \LogicException
a progress bar example show by class ProgressBar