@@ -219,7 +219,9 @@ public function query()
219
219
* @param string $requestUri
220
220
* @param array $bindings
221
221
*
222
- * @return IODataRequest
222
+ * @return array of objects
223
+ * .. of class $entityReturnType if $entityReturnType !== false
224
+ * .. of class ODataResponse if $entityReturnType === false
223
225
*/
224
226
public function get ($ requestUri , $ bindings = [])
225
227
{
@@ -234,7 +236,12 @@ public function get($requestUri, $bindings = [])
234
236
* @param array $bindings
235
237
* @param array $skipToken
236
238
*
237
- * @return IODataRequest
239
+ * @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
240
+ * Otherwise: array with two values
241
+ * - First value: array of objects
242
+ * .. of class $entityReturnType if $entityReturnType !== false
243
+ * .. of class ODataResponse if $entityReturnType === false
244
+ * - Second value: string containing the "next link" URL
238
245
*/
239
246
public function getNextPage ($ requestUri , $ bindings = [])
240
247
{
@@ -273,7 +280,12 @@ public function cursor($requestUri, $bindings = [])
273
280
* @param string $requestUri
274
281
* @param mixed $postData
275
282
*
276
- * @return IODataRequest
283
+ * @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
284
+ * Otherwise: array with two values
285
+ * - First value: array of objects
286
+ * .. of class $entityReturnType if $entityReturnType !== false
287
+ * .. of class ODataResponse if $entityReturnType === false
288
+ * - Second value: string containing the "next link" URL
277
289
*/
278
290
public function post ($ requestUri , $ postData )
279
291
{
@@ -286,7 +298,12 @@ public function post($requestUri, $postData)
286
298
* @param string $requestUri
287
299
* @param mixed $body
288
300
*
289
- * @return IODataRequest
301
+ * @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
302
+ * Otherwise: array with two values
303
+ * - First value: array of objects
304
+ * .. of class $entityReturnType if $entityReturnType !== false
305
+ * .. of class ODataResponse if $entityReturnType === false
306
+ * - Second value: string containing the "next link" URL
290
307
*/
291
308
public function patch ($ requestUri , $ body )
292
309
{
@@ -298,7 +315,12 @@ public function patch($requestUri, $body)
298
315
*
299
316
* @param string $requestUri
300
317
*
301
- * @return IODataRequest
318
+ * @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
319
+ * Otherwise: array with two values
320
+ * - First value: array of objects
321
+ * .. of class $entityReturnType if $entityReturnType !== false
322
+ * .. of class ODataResponse if $entityReturnType === false
323
+ * - Second value: string containing the "next link" URL
302
324
*/
303
325
public function delete ($ requestUri )
304
326
{
@@ -312,7 +334,12 @@ public function delete($requestUri)
312
334
* @param string $requestUri
313
335
* @param mixed $body
314
336
*
315
- * @return IODataRequest
337
+ * @return If $entityReturnType === 'stream': GuzzleHttp\Psr7\Response
338
+ * Otherwise: array with two values
339
+ * - First value: array of objects
340
+ * .. of class $entityReturnType if $entityReturnType !== false
341
+ * .. of class ODataResponse if $entityReturnType === false
342
+ * - Second value: string containing the "next link" URL
316
343
*
317
344
* @throws ODataException
318
345
*/
0 commit comments