| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class NextPageHandler extends AbstractHandler |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Determine whether the handler can handle the APIs configuration |
||
| 19 | * |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | public function matches(): bool |
||
| 23 | { |
||
| 24 | return !!$this->config->nextPageKey; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Handle the APIs configuration |
||
| 29 | * |
||
| 30 | * @return Traversable |
||
| 31 | */ |
||
| 32 | public function handle(): Traversable |
||
| 40 | } |
||
| 41 | }); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Handle APIs with next page |
||
| 46 | * |
||
| 47 | * @return Traversable |
||
| 48 | */ |
||
| 49 | protected function handleByNextPage(): Traversable |
||
| 63 |