/** * Set limit * @param int $offset * @param int $limit */ public function setLimit($offset, $limit) { $this->collection->removeClause("offset")->offset($offset); $this->collection->removeClause("limit")->limit($limit); }