public function getStream()
    {
        if ($this->stream instanceof \Closure) {
            $this->stream = $this->stream->__invoke();
        }
        if (is_resource($this->stream)) {
            $meta = stream_get_meta_data($this->stream);
            if ($meta['seekable']) {
                rewind($this->stream);
            }
        }
        return $this->stream;
    }
public function getStream()
    {
        if ($this->stream instanceof \Closure) {
            $this->stream = $this->stream->__invoke();
        }
        if (is_resource($this->stream)) {
            $meta = stream_get_meta_data($this->stream);
            if ($meta['seekable']) {
                rewind($this->stream);
            }
        }
        return $this->stream;
    }
public function getStream ( ) { if ( $ this -> stream instanceof \ Closure ) { $ this -> stream = $ this -> stream -> __invoke ( ) ; } if ( is_resource ( $ this -> stream ) ) { $ meta = stream_get_meta_data ( $ this -> stream ) ; if ( $ meta [ 'seekable' ] ) { rewind ( $ this -> stream ) ; } } return $ this -> stream ; }
Returns the data stream which can deliver the content of this storage object

@return resource A data stream resource; if the stream is seekable, it is rewound to the start
Returns the data stream which can deliver the content of this storage object