| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class InlineKeyboardPaginationException extends Exception |
||
| 13 | { |
||
| 14 | public static function invalidMaxButtons(): self |
||
| 15 | { |
||
| 16 | return new self('Invalid max buttons, must be between 5 and 8.'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function pageMustBeBetween(int $minPage, int $maxPage): self |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function invalidItemsPerPage(): self |
||
| 25 | { |
||
| 26 | return new self('Invalid number of items per page, must be at least 1.'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function noItems(): self |
||
| 32 | } |
||
| 33 | } |
||
| 34 |