Skip to content

Commit

Permalink
Merge pull request #6778 from kenjis/add-ResultInterface-getNumRows
Browse files Browse the repository at this point in the history
fix: add missing ResultInterface::getNumRows()
  • Loading branch information
kenjis authored Oct 28, 2022
2 parents 41ea704 + 8704c8d commit 1abb1f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/Database/ResultInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public function getNextRow(string $type = 'object');
*/
public function getPreviousRow(string $type = 'object');

/**
* Returns number of rows in the result set.
*/
public function getNumRows(): int;

/**
* Returns an unbuffered row and move the pointer to the next row.
*
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Interface Changes
- Now ``RequestInterface`` extends ``MessageInterface``.
- Now ``ResponseInterface`` extends ``MessageInterface``.
- Added missing ``ResponseInterface::getCSP()`` (and ``Response::getCSP()``), ``ResponseInterface::getReasonPhrase()`` and ``ResponseInterface::getCookieStore()`` methods.
- Added missing ``CodeIgniter\Database\ResultInterface::getNumRows()`` method.
- See also `Validation Changes`_.

Method Signature Changes
Expand Down

0 comments on commit 1abb1f4

Please sign in to comment.