| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 18 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 25 |             throw new InvalidArgumentException('PerPage mustbe greater than 0'); | ||
| 26 | } | ||
| 27 | |||
| 28 |         if ($total < 0) { | ||
| 29 |             throw new InvalidArgumentException('Total must be greater equals 0'); | ||
| 30 | } | ||
| 31 | |||
| 32 | $this->perPage = $perPage; | ||
| 33 | $this->currentPage = $currentPage; | ||
| 34 | $this->total = $total; | ||
| 35 | } | ||
| 36 | |||
| 37 | public function getCurrentPage(): int | ||
| 38 |     { | ||
| 39 | return $this->currentPage; | ||
| 40 | } | ||
| 41 | |||
| 42 | public function getTotal(): int | ||
| 43 |     { | ||
| 61 |