| 1 | <?php |
||
| 7 | class Pager extends Model |
||
| 8 | { |
||
| 9 | |||
| 10 | protected $total = null; |
||
| 11 | |||
| 12 | protected $from = null; |
||
| 13 | |||
| 14 | protected $to = null; |
||
| 15 | |||
| 16 | protected $pageSize = null; |
||
| 17 | |||
| 18 | protected $pagesCount = null; |
||
| 19 | |||
| 20 | protected $currentPage = null; |
||
| 21 | |||
| 22 | protected $mappingClasses = []; |
||
| 23 | |||
| 24 | protected $propNameMap = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Retrieve the total property |
||
| 28 | * |
||
| 29 | * @return int|null |
||
| 30 | */ |
||
| 31 | public function getTotal() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Retrieve the from property |
||
| 38 | * |
||
| 39 | * @return int|null |
||
| 40 | */ |
||
| 41 | 1 | public function getFrom() |
|
| 42 | { |
||
| 43 | 1 | return $this->from; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Retrieve the to property |
||
| 48 | * |
||
| 49 | * @return int|null |
||
| 50 | */ |
||
| 51 | 1 | public function getTo() |
|
| 52 | { |
||
| 53 | 1 | return $this->to; |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Retrieve the pageSize property |
||
| 58 | * |
||
| 59 | * @return int|null |
||
| 60 | */ |
||
| 61 | 1 | public function getPageSize() |
|
| 62 | { |
||
| 63 | 1 | return $this->pageSize; |
|
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Retrieve the pagesCount property |
||
| 68 | * |
||
| 69 | * @return int|null |
||
| 70 | */ |
||
| 71 | public function getPagesCount() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Retrieve the currentPage property |
||
| 78 | * |
||
| 79 | * @return int|null |
||
| 80 | */ |
||
| 81 | 1 | public function getCurrentPage() |
|
| 85 | } |
||
| 86 |