public function write()
    {
        if ($this->textWriter === null) {
            throw new ConsoleException('No TextWriter object specified');
        }
        $this->textWriter->write($this->render());
        return $this;
    }
public function write()
    {
        if ($this->textWriter === null) {
            throw new ConsoleException('No TextWriter object specified');
        }
        $this->textWriter->write($this->render());
        return $this;
    }
public function write ( ) { if ( $ this -> textWriter === null ) { throw new ConsoleException ( 'No TextWriter object specified' ) ; } $ this -> textWriter -> write ( $ this -> render ( ) ) ; return $ this ; }
Writes the rendered progress bar to the text writer

@return ProgressBar
Writes the rendered progress bar to the text writer