Pager constructor.
int $totalItems: The total number of items.
int $limit: The maximum number of items per page.
int $currentPage: The current page.
public function __construct($totalItems, $limit, $currentPage = 0) { $this->totalItems = $totalItems; $this->limit = $limit; $this->setTotalPages($totalItems, $limit); $this->setCurrentPage($currentPage); }