protected function doWrite(string $text, bool $error = false): self
    {
        $stream = $error ? $this->eStream : $this->stream;

        \fwrite($stream, $text);

        return $this;
    }
protected function doWrite(string $text, bool $error = false): self
    {
        $stream = $error ? $this->eStream : $this->stream;

        \fwrite($stream, $text);

        return $this;
    }
protected function doWrite ( string $ text , bool $ error = false ) : self { $ stream = $ error ? $ this -> eStream : $ this -> stream ; \ fwrite ( $ stream , $ text ) ; return $ this ; }
Really write to the stream.

@param string $text
@param bool   $error

@return self
Really write to the stream .