Neos\Flow\ResourceManagement\Storage\StorageObject::getStream PHP Method

getStream() public method

Returns the data stream which can deliver the content of this storage object
public getStream ( ) : resource
return resource A data stream resource; if the stream is seekable, it is rewound to the start
    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;
    }