@param array $options

@throws Exception

@return $this
962768
function renew(array $options = array())
    {

        if (!empty($options['events'])) {
            $this->setEvents($options['events']);
        }

        if (!$this->subscribed()) {
            throw new Exception('No subscription');
        }

        try {

            $response = $this->_platform->put('/restapi/v1.0/subscription/' . $this->_subscription['id'], array(
                'eventFilters' => $this->getFullEventFilters()
            ));

            $this->setSubscription($response->jsonArray());

            $this->dispatch(self::EVENT_RENEW_SUCCESS, new SuccessEvent($response));

            return $this;

        } catch (Exception $e) {

            $this->reset();
            $this->dispatch(self::EVENT_RENEW_ERROR, new ErrorEvent($e));
            throw $e;

        }

    }
871111
private function setInstanceOptions(array $options = array())
    {
        foreach ($options as $key => $value) {
            if (true === array_key_exists($key, $this->_instance_options)) {
                $this->_instance_options[$key] = $value;
            } else {
                throw new CacheException(sprintf('Unknown option %s for cache adapter %s.', $key, get_class($this)));
            }
        }

        return $this;
    }
1114143
public function setOptions($options)
	{
		if (!isset($options[self::OPTION_LINE_BREAK])
				&& !isset($options[self::OPTION_INDENTATION])
				&& !isset($options[self::OPTION_TEXT_MODE]))
			return $this;
		if (!$this->isAncestor()) {
			$prevAncestor = $this->getAncestor();
			$this->setAncestor($this);
			$this->options = [
					self::OPTION_LINE_BREAK => $prevAncestor->options[self::OPTION_LINE_BREAK],
					self::OPTION_INDENTATION => $prevAncestor->options[self::OPTION_INDENTATION],
					self::OPTION_TEXT_MODE => $prevAncestor->options[self::OPTION_TEXT_MODE]
			];
		}
		$this->setAncestorOption($options, self::OPTION_LINE_BREAK);
		$this->setAncestorOption($options, self::OPTION_INDENTATION);
		$this->setAncestorOption($options, self::OPTION_TEXT_MODE);
		return $this;
	}
1193037
public function create(array $options = [])
    {
        $data = $this->creationSerialize();

        $this->security->getKuzzle()->query(
            $this->security->buildQueryArgs('createUser'),
            $data,
            $options
        );

        return $this;
    }
76627
public function setOptions($options)
    {
        if ($this->options !== $options) {
            if (!$options instanceof AdapterOptions) {
                $options = new AdapterOptions($options);
            }

            if ($this->options) {
                $this->options->setAdapter(null);
            }
            $options->setAdapter($this);
            $this->options = $options;
        }

        return $this;
    }
929490
public function setOptions(array $options)
    {
        if (isset($options['bitstring_padding']) && \is_string($options['bitstring_padding'])) {
            $this->options['bitstring_padding'] = $options['bitstring_padding'];
        }

        return $this;
    }
867973
public function setOptions(Array $options)
    {
        foreach ($options as $optionName => $optionValue) {
            $this->setTableConfig($optionName, $optionValue);
        }
        return $this;
    }
272394
function with(array $options, $throwException = false)
    {
        $this->_view->with($options, $throwException);
        return $this;
    }
201843
public function setOptions(AbstractOptions $options)
    {
        $optionsClass = Conversion::getOptionsFullQualifiedClassName($this);
        $inputOptionsClass = get_class($options);
        if ($inputOptionsClass !== $optionsClass) {
            throw new Exception\DomainException(sprintf(
                '"%s" expects that options set are an array or a valid "%s" instance; received "%s"',
                __METHOD__,
                $optionsClass,
                $inputOptionsClass
            ));
        }
        $this->options = $options;
        return $this;
    }
50956
public function setOptions(array $options)
    {
        if ($this->frozen) {
            throw new Exception('The options for the field "'.$this->name.'"');
        }
        $this->options = $options;
        $this->frozen = true;
    }
615051
public function withOptions(array $options = []): Element
    {
        $this->options = array_merge(
            $this->options,
            $options
        );

        return $this;
    }
1034610
public function setOptions($options)
    {
        if (!is_array($options) && !$options instanceof Traversable) {
            throw new Exception\InvalidArgumentException(sprintf(
                '"%s" expects an array or Traversable; received "%s"',
                __METHOD__,
                (is_object($options) ? get_class($options) : gettype($options))
            ));
        }

        foreach ($options as $key => $value) {
            if ($key == 'options') {
                $key = 'adapterOptions';
            }
            $method = 'set' . ucfirst($key);
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
        return $this;
    }
955978
public function addOptions(array $options) : OptionGroup
    {
        foreach ($options as $value => $content) {
            $this->addOption($content, $value);
        }

        return $this;
    }
844890
public function setOptios($options)
    {
        foreach ($options as $option => $value) {
            $this->setOption($option, $value);
        }
        curl_setopt_array($this->resource, $options);

        return $this;
    }
526324
public function setFormatOptions(array $options)
    {
        foreach ($options as $name => $handler) {
            $this->setFormatOption($name, $handler);
        }
        return $this;
    }
610912
public function setOptsByArray($options)
	{
		foreach (self::$_setableOptions as $optionKey) {
			if (isset($options[$optionKey])) {
				$this->$optionKey = $options[$optionKey];
			}
		}

		return $this;
	}
1362786
public function optionsByArray($options) {
		if ($options) {
			$this->options = array_merge($this->options, $options);
		}

		return $this;
	}