| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class PaginatedCollection extends IdentityCollection |
||
| 6 | { |
||
| 7 | protected int $limit; |
||
| 8 | protected int $total_count; |
||
| 9 | protected int $offset; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @return int |
||
| 13 | */ |
||
| 14 | public function getLimit(): int |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param int|null $limit |
||
| 21 | */ |
||
| 22 | public function setLimit(?int $limit): void |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | public function getTotalCount(): int |
||
| 31 | { |
||
| 32 | return $this->total_count; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param int|null $total_count |
||
| 37 | */ |
||
| 38 | public function setTotalCount(?int $total_count): void |
||
| 39 | { |
||
| 40 | $this->total_count = $total_count; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getOffset(): int |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param int|null $offset |
||
| 53 | */ |
||
| 54 | public function setOffset(?int $offset): void |
||
| 57 | } |
||
| 58 | } |
||
| 59 |