public function setOptions($options) { if (empty($options["limit"])) { $options["limit"] = 1000000; } $this->options = $options; return $this; }