public function progressBar($useProgressBar = true)
    {
        if ($useProgressBar) {
            $this->progressbar = true;
        } else {
            $this->progressbar = false;
        }

        // If they set this true after saying they want tiny, they actually want small.
        if ($useProgressBar && $this->getSize() == static::SIZE_TINY) {
            $this->size(static::SIZE_SMALL);
        }
        // If they set this true after saying they want invisible, they're being silly and I refuse to handle it.

        return $this;
    }
public function progressBar($useProgressBar = true)
    {
        if ($useProgressBar) {
            $this->progressbar = true;
        } else {
            $this->progressbar = false;
        }

        // If they set this true after saying they want tiny, they actually want small.
        if ($useProgressBar && $this->getSize() == static::SIZE_TINY) {
            $this->size(static::SIZE_SMALL);
        }
        // If they set this true after saying they want invisible, they're being silly and I refuse to handle it.

        return $this;
    }
public function progressBar ( $ useProgressBar = true ) { if ( $ useProgressBar ) { $ this -> progressbar = true ; } else { $ this -> progressbar = false ; } // If they set this true after saying they want tiny, they actually want small. if ( $ useProgressBar && $ this -> getSize ( ) == static :: SIZE_TINY ) { $ this -> size ( static :: SIZE_SMALL ) ; } // If they set this true after saying they want invisible, they're being silly and I refuse to handle it. return $ this ; }
Set Progress Bar
Choose whether or not to display the progress bar.

@param bool $useProgressBar

@return $this
Set Progress Bar Choose whether or not to display the progress bar .