/** * @param $limit * @param $skip */ public function limit($limit, $skip = null) { if (!is_null($limit) and is_numeric($limit)) { $this->object = $this->object->take($limit); } else { $this->object = $this->object->take(100); } if (!is_null($skip) and is_numeric($skip)) { $this->object = $this->object->skip($skip); } }