public function limit($limit, $offset = NULL) { $this->emptyResultSet(); $this->sqlBuilder->setLimit($limit, $offset); return $this; }
/** * @param int $limit * @param int $offset * @return array */ public function getData($limit = NULL, $offset = NULL) { if ($limit !== NULL) { $this->source->limit($limit, $offset); } return $this->source->fetchAll(); }