public function limitBy($limit, $offset = null) { $collection = clone $this; $collection->queryBuilder->limitBy($limit, $offset); return $collection; }
/** * Apply limit and offset on data * @param int $offset * @param int $limit * @return static */ public function limit($offset, $limit) { $this->data_source = $this->data_source->limitBy($limit, $offset); return $this; }