| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | trait YieldsItemsByCursor |
||
| 15 | { |
||
| 16 | use RespectsRateLimits; |
||
| 17 | use RetriesHttpRequests; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Yield the paginated items by following the cursor of each page. |
||
| 21 | * |
||
| 22 | * @param Closure(ResponseInterface): Generator<int, mixed> $callback |
||
| 23 | * @return Generator<int, mixed> |
||
| 24 | */ |
||
| 25 | 3 | protected function yieldItemsByCursor(Closure $callback): Generator |
|
| 43 |