| 1 | <?php | ||
| 9 | class PaginatorAdapter implements PaginatorInterface | ||
| 10 | { | ||
| 11 | /** | ||
| 12 | * @var LengthAwarePaginator | ||
| 13 | */ | ||
| 14 | private $paginator; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * PaginatorAdapter constructor. | ||
| 18 | * | ||
| 19 | * @param LengthAwarePaginator $paginator | ||
| 20 | */ | ||
| 21 | 8 | public function __construct(LengthAwarePaginator $paginator) | |
| 25 | |||
| 26 | /** | ||
| 27 | * @return int | ||
| 28 | */ | ||
| 29 | 2 | public function getCurrentPage() | |
| 33 | |||
| 34 | /** | ||
| 35 | * @return int | ||
| 36 | */ | ||
| 37 | 2 | public function getLastPage() | |
| 41 | |||
| 42 | /** | ||
| 43 | * @return int | ||
| 44 | */ | ||
| 45 | 2 | public function getTotal() | |
| 49 | |||
| 50 | /** | ||
| 51 | * @return int | ||
| 52 | */ | ||
| 53 | 2 | public function getCount() | |
| 57 | |||
| 58 | /** | ||
| 59 | * @return int | ||
| 60 | */ | ||
| 61 | 2 | public function getPerPage() | |
| 65 | |||
| 66 | /** | ||
| 67 | * @param int $page | ||
| 68 | * | ||
| 69 | * @return string | ||
| 70 | */ | ||
| 71 | 2 | public function getUrl($page) | |
| 75 | |||
| 76 | /** | ||
| 77 | * @return Paginator | ||
| 78 | */ | ||
| 79 | 1 | public function getPaginator() | |
| 83 | } | ||
| 84 |