Skip to content

Commit 48f694d

Browse files
committed
Add Result::fetchRow()
1 parent 73596df commit 48f694d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Result.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
*/
99
interface Result extends \Traversable
1010
{
11+
/**
12+
* Returns the next row in the result set or null if no rows remain. This method may be used as an alternative
13+
* to foreach iteration to obtain single rows from the result.
14+
*
15+
* @return array<string, TFieldValue>|null
16+
*/
17+
public function fetchRow(): ?array;
18+
1119
/**
1220
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if
1321
* no further results are available.

0 commit comments

Comments
 (0)