| Total Complexity | 10 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ItemsPerPageHandler extends AbstractHandler |
||
| 14 | { |
||
| 15 | use HandlesTotalPages; |
||
|
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * Determine whether the handler can handle the APIs configuration |
||
| 19 | * |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | public function matches(): bool |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle the APIs configuration |
||
| 31 | * |
||
| 32 | * @return Traversable |
||
| 33 | */ |
||
| 34 | public function handle(): Traversable |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Retrieve the total number of items |
||
| 45 | * |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | protected function countItems(): int |
||
| 61 |