Skip to content

Commit 96a632b

Browse files
committed
Adding doc block
1 parent b01a51f commit 96a632b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

system/Model.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use CodeIgniter\Validation\ValidationInterface;
2727
use Config\Database;
2828
use Config\Feature;
29+
use Generator;
2930
use stdClass;
3031

3132
/**
@@ -525,7 +526,14 @@ public function countAllResults(bool $reset = true, bool $test = false)
525526
return $this->builder()->testMode($test)->countAllResults($reset);
526527
}
527528

528-
private function iterateChunks(int $size): \Generator
529+
/**
530+
* Iterates over the result set in chunks of the specified size.
531+
*
532+
* @param int $size The number of records to retrieve in each chunk.
533+
*
534+
* @returns Generator<array<int, array|object>>
535+
*/
536+
private function iterateChunks(int $size): Generator
529537
{
530538
if ($size <= 0) {
531539
throw new InvalidArgumentException('$size must be a positive integer.');

0 commit comments

Comments
 (0)