public function setStream(StreamInterface $stream = null)
    {
        $this->stream = $stream;
        $this->decodedStream = null;
        $this->charsetStream = null;
    }
public function setStream(StreamInterface $stream = null)
    {
        $this->stream = $stream;
        $this->decodedStream = null;
        $this->charsetStream = null;
    }
public function setStream ( StreamInterface $ stream = null ) { $ this -> stream = $ stream ; $ this -> decodedStream = null ; $ this -> charsetStream = null ; }
Sets the URL used to open the content resource handle.

The function also closes the currently attached handle if any.

@param StreamInterface $stream
Sets the URL used to open the content resource handle .