public function getProgressBar() : ProgressBar
    {
        if (!$this->progressBar) {
            $this->progressBar = new ProgressBar($this->getOutput(), $this->numRecords);
            $this->progressBar->setFormat('debug');
            $this->progressBar->setBarWidth((int) exec('tput cols'));
        }

        return $this->progressBar;
    }
public function getProgressBar() : ProgressBar
    {
        if (!$this->progressBar) {
            $this->progressBar = new ProgressBar($this->getOutput(), $this->numRecords);
            $this->progressBar->setFormat('debug');
            $this->progressBar->setBarWidth((int) exec('tput cols'));
        }

        return $this->progressBar;
    }
public function getProgressBar ( ) : ProgressBar { if ( ! $ this -> progressBar ) { $ this -> progressBar = new ProgressBar ( $ this -> getOutput ( ) , $ this -> numRecords ) ; $ this -> progressBar -> setFormat ( 'debug' ) ; $ this -> progressBar -> setBarWidth ( ( int ) exec ( 'tput cols' ) ) ; } return $ this -> progressBar ; }
Allows to modify the progress bar instance

@return ProgressBar
Allows to modify the progress bar instance