public function setStream(OutputStream $stream)
    {
        $this->stream = $stream;
        $this->formatOutput = $stream->supportsAnsi() || !($this->formatter instanceof AnsiFormatter);
    }
public function setStream(OutputStream $stream)
    {
        $this->stream = $stream;
        $this->formatOutput = $stream->supportsAnsi() || !($this->formatter instanceof AnsiFormatter);
    }
public function setStream ( OutputStream $ stream ) { $ this -> stream = $ stream ; $ this -> formatOutput = $ stream -> supportsAnsi ( ) || ! ( $ this -> formatter instanceof AnsiFormatter ) ; }
Sets the underlying stream.

@param OutputStream $stream The output stream.
Sets the underlying stream .