public function readStream($psr7Stream = false)
    {
        $response = $this->api->request('GET', $this->absolutePath());

        if ($psr7Stream) {
            return $response->getBody();
        }

        return StreamWrapper::getResource($response->getBody());
    }
public function readStream($psr7Stream = false)
    {
        $response = $this->api->request('GET', $this->absolutePath());

        if ($psr7Stream) {
            return $response->getBody();
        }

        return StreamWrapper::getResource($response->getBody());
    }
public function readStream ( $ psr7Stream = false ) { $ response = $ this -> api -> request ( 'GET' , $ this -> absolutePath ( ) ) ; if ( $ psr7Stream ) { return $ response -> getBody ( ) ; } return StreamWrapper :: getResource ( $ response -> getBody ( ) ) ; }
Reads file contents as stream.

@param bool $psr7Stream = false

@return resource|\Psr\Http\Message\StreamInterface
Reads file contents as stream .