api/MarkLogic/MLPHP/Options.php
public function setSearchOptions($searchOptions)
    {
        if (is_array($searchOptions)) {
            $this->searchOptions = array_unique(array_merge($this->searchOptions, $searchOptions));
        } else {
            $this->searchOptions[] = $searchOptions;
            $this->searchOptions = array_unique($this->searchOptions);
        }
        return $this;
    }
public function setSearchOptions($searchOptions)
    {
        if (is_array($searchOptions)) {
            $this->searchOptions = array_unique(array_merge($this->searchOptions, $searchOptions));
        } else {
            $this->searchOptions[] = $searchOptions;
            $this->searchOptions = array_unique($this->searchOptions);
        }
        return $this;
    }
Set the query options.

@see http://docs.marklogic.com/search:search#opt-search-option

@param string|array $searchOptions The query options as a string (single option) or array of strings.
@return Options $this