Setting the given options from constructor.

@param array $options

@throws \InvalidArgumentException if the given option is not available to overwrite.
195005
protected function set_options( array $options = [ ] ) {

		foreach ( $options as $key => $value ) {
			if ( ! array_key_exists( $key, $this->options ) ) {
				throw new \InvalidArgumentException(
					sprintf( 'The option "%1$s" does not have a matching option[%1$s] array key', $key ),
					1.0
				);
				continue;
			}

			$this->options[ $key ] = $value;
		}
	}
694293
public function setOptions(array $options)
    {
        if (isset($options['rendererClassName'])) {
            $this->setRendererClassName($options['rendererClassName']);
        }
        if (isset($options['renderingOptions'])) {
            foreach ($options['renderingOptions'] as $key => $value) {
                $this->setRenderingOption($key, $value);
            }
        }
        if (isset($options['finishers'])) {
            foreach ($options['finishers'] as $finisherConfiguration) {
                $this->createFinisher($finisherConfiguration['identifier'], isset($finisherConfiguration['options']) ? $finisherConfiguration['options'] : []);
            }
        }

        FormArrays::assertAllArrayKeysAreValid($options, array('rendererClassName', 'renderingOptions', 'finishers'));
    }
365814
private function setRequestOptions(array $options)
    {
        $config = $this->getGuzzleClient()->getConfig();
        $config->set(Client::REQUEST_OPTIONS, $options);

        $this->getGuzzleClient()->setConfig($config);
    }
123350
public function setOptions(array $options): Options
    {
        foreach ($options as $key => $option) {
            $this->options[$key] = $option;
        }

        return $this;
    }
1035022
public function setOption($options = [])
    {
        $this->options = $options;

        // IPN TEST MODEL
        if (!empty($_REQUEST['test_ipn'])) {
            $this->endpoint = $this->sandbox_endpoint;
        }
    }
212924
public function setOptions(array $options) : void
    {
        self::$options = array_unique(array_merge(self::$options, $options));
    }
316326
public function config(array $options)
    {
        foreach ($options as $key => $value) {
            $method = 'set' . $key;
            if (method_exists($this, $method)) {
                call_user_func(array($this, $method), $value);
            }
        }
    }
106026
public function setOptions($options) 
	{
		foreach ($this->options as $key => $option) {
			if (isset($options[$key])) {
				$this->options[$key] = $options[$key];
			}
		}
	}
607899
protected function init(array $options = array())
    {
        foreach ($options as $key => $value) {
            if (property_exists($this, $key)) {
                $this->{$key} = $value;
            }
        }
    }
205457
public function setOptions(array $options)
    {
        $this->options = [];

        foreach ($options as $k => $v) {
            $this->addOption($k, (array)$v);
        }

        return $this;
    }
686594
public function setOptions(array $options)
	{
		if (isset($options['type']))
		{
			$this->type = $options['type'];
		}

		if (isset($options['timeout']))
		{
			$this->timeout = $options['timeout'];
		}

		return true;
	}
984123
protected function setDefaultOptions(array $options = [])
    {
        $this->options = $this->formHelper->mergeOptions($this->allDefaults(), $this->getDefaults());
        $this->options = $this->prepareOptions($options);
    }
1169199
public function setOptions(array $options) {
        if (!is_array($options)) {
            if (is_object($options) && method_exists($options, 'toArray')) {
                $options = $options->toArray();
            } else {
                throw new \common_exception_Error('Options submitted to '.get_called_class().' must be an array or implement toArray');
            }
        }
        $this->options = $options;
    }
1313212
protected function set_options( array $options ) {
        $this->options = array_merge( $this->options, $options );
        $this->options = (object) $this->options;

        if ( ! is_string( $this->options->instance ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `instance` must be string.' );
        }

        $this->set_namespace();

        if ( ! is_string( $this->options->action ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `action` must be string.' );
        }

        if ( ! is_string( $this->options->domain ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `domain` must be string.' );
        }

        if ( ! is_string( $this->options->lang_dir ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `lang_dir` must be string.' );
        }

        if ( ! is_string( $this->options->lang_path ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `lang_path` must be string.' );
        }

        if ( ! is_string( $this->options->namespace ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `namespace` must be string.' );
        }

        if ( ! is_string( $this->options->src_dir ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `src_dir` must be string.' );
        }

        if ( ! is_array( $this->options->files ) ) {
            throw new InvalidArgumentException( 'Invalid argument. `files` must be array.' );
        }

        $this->options->files = array_filter( $this->options->files, function ( $file ) {
            return is_string( $file ) && file_exists( $this->get_src_path( $file ) );
        } );
    }
826548
public function setOptions($options){
		$options = array_intersect_key($options,$this->defaultOptions);
		$this->options = array_merge($this->defaultOptions, $this->options, $options);
	}
36670
public function setOptions(array $options)
    {
        if (isset($options['label'])) {
            $this->setLabel($options['label']);
        }

        if ($this instanceof FormElementInterface) {
            if (isset($options['defaultValue'])) {
                $this->setDefaultValue($options['defaultValue']);
            }

            if (isset($options['properties'])) {
                foreach ($options['properties'] as $key => $value) {
                    $this->setProperty($key, $value);
                }
            }
        }

        if (isset($options['rendererClassName'])) {
            $this->setRendererClassName($options['rendererClassName']);
        }

        if (isset($options['renderingOptions'])) {
            foreach ($options['renderingOptions'] as $key => $value) {
                $this->setRenderingOption($key, $value);
            }
        }

        if (isset($options['validators'])) {
            foreach ($options['validators'] as $validatorConfiguration) {
                $this->createValidator($validatorConfiguration['identifier'], isset($validatorConfiguration['options']) ? $validatorConfiguration['options'] : []);
            }
        }

        FormArrays::assertAllArrayKeysAreValid($options, array('label', 'defaultValue', 'properties', 'rendererClassName', 'renderingOptions', 'validators'));
    }
87890
public function setOptions(array $options)
    {
        if ($this->server && $this->server->isRunning()) {
            throw new LogicException('Options cannot be set while the server is running.');
        }

        $this->options = array_diff_key($this->options, $options) + $options;

        if ($this->swoolePort != null) {
            $this->swoolePort->set($this->options);
        }
    }