page ?? 1; } public function getLimit(): int { $limit = $this->limit ?? 15; return min(max($limit, 1), 100); } public function getOffset(): int { return ($this->getPage() - 1) * $this->getLimit(); } }