public function page($size, $current = 1) { $current = (int) max(1, $current); $this->_limit = (int) $size; $this->_offset = (int) ($current - 1) * $size; return $this; }