yii\elasticsearch\Query::options PHP Method

options() public method

Sets the options to be passed to the command created by this query.
See also: Command::$options
Since: 2.0.4
public options ( array $options )
$options array the options to be set.
    public function options($options)
    {
        if (!is_array($options)) {
            throw new InvalidParamException('Array parameter expected, ' . gettype($options) . ' received.');
        }
        $this->options = $options;
        return $this;
    }