total / $this->limit); } public function hasNextPage(): bool { return $this->page < $this->getTotalPages(); } public function hasPreviousPage(): bool { return $this->page > 1; } }