public function search($type) { if (empty($type)) { throw new Exception\QueryBuilderException('Input value cannot be empty!'); } Configuration::validateSearchType($type); $this->options['s'] = ' -s ' . $type; return $this; }