public function getStream()
    {
        if ($this->stream === null) {
            return $this->streamFactory->newMessagePartStream($this);
        }
        $this->stream->rewind();
        return $this->stream;
    }
public function getStream()
    {
        if ($this->stream === null) {
            return $this->streamFactory->newMessagePartStream($this);
        }
        $this->stream->rewind();
        return $this->stream;
    }
public function getStream ( ) { if ( $ this -> stream === null ) { return $ this -> streamFactory -> newMessagePartStream ( $ this ) ; } $ this -> stream -> rewind ( ) ; return $ this -> stream ; }
Returns a Psr7 StreamInterface containing this part, including any
headers for a MimePart, its content, and all its children.

@return StreamInterface the resource handle
Returns a Psr7 StreamInterface containing this part including any headers for a MimePart its content and all its children .