Sets one of the configuration options.

@param int $option  One of the <tt>WP_</tt> constants.
@param mixed $value The option's new value. The required type depends on the option.

@see setOptions()  to change multiple options at once.
@return self
182654
public function setOption(int $option, $value): self
    {
        $this->options[$option] = $value;
        return $this;
    }
586931
protected function setValue($value)
    {
        if (!isset($this->value) || null === $this->value) {
            $this->value = $value;
        }

        return $this;
    }
670522
public function setOption(string $option, $value) {
        $this->validateOption($option, $value);
        $this->options[$option] = $value;
    }
425688
public function setOption($option, $value)
    {
        $this->_setErrorHandler();
        ldap_set_option($this->getConnection(), $option, $value);
        $this->_unsetErrorHandler();
    }
881319
public function setOption(int $option, mixed $value)
    {
        curl_setopt($this->curl, $option, $value);
    }
1292642
public function setOption($option, $value)
    {
        if (in_array($option, $this->availableOptions)) {
            $this->$option = $value;

            return $this;
        }

        throw new ApiClientException(sprintf('Trying to set unknown option "%s" on %s ', $option, get_class()));
    }
380790
public function setValue($value)
    {
        parent::setValue($value);
        if ($this->hasAttribute('value')) {
            $this->getAttributes()->remove('value');
        }
        return $this;
    }
478870
public function setValue($value)
    {
        $this->_value = $value;
        $this->getInput()->setValue($value);
        return $this;
    }
755047
public function addOption($option, $value = null)
    {
        if (is_array($option)) {
            $this->options = $option + $this->options;
        } else {
            $this->options[$option] = $value;
        }
    }
776936
public function setOpt($option, $value)
    {
        /**
         * @var Curl $instance
         */
        foreach ($this->curlInstances as $instance) {
            $instance->setOpt($option, $value);
        }
    }
1337769
public function setOptions($option, $value = null) 
	{
		Argument::i()
			->test(1, 'array', 'string')
			->test(2, 'scalar', 'null');
		
		if(is_array($option)) {
			$this->options = $option;
			return $this;
		}
		
		$this->options[$option] = $value;
		return $this;
	}
190820
public function set(string $key, $value): self
    {
        $this->options[$key] = $value;

        return $this;
    }
674361
public function option($option, $value = null)
    {
        if (func_num_args() == 1) {
            return array_get($this->options, $option);
        }

        $this->options[$option] = $value;

        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
628997
public function setValue($value)
    {
        $this->selected = $value;
        if ($this->hasChildren()) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Select\Option) {
                    if ($child->getValue() == $this->selected) {
                        $child->select();
                    } else {
                        $child->deselect();
                    }
                } else if ($child instanceof Select\Optgroup) {
                    $options = $child->getOptions();
                    foreach ($options as $option) {
                        if ($option->getValue() == $this->selected) {
                            $option->select();
                        } else {
                            $option->deselect();
                        }
                    }
                }
            }
        }
        return $this;
    }
376790
public function setOption($option, $value)
    {
        switch ($option) {
        case 'keep-alive':
        case 'ssl':
            $this->options[$option] = (bool) $value;
            break;

        case 'http-log':
        case 'headers':
        case 'password':
        case 'username':
            $this->options[$option] = $value;
            break;

        default:
            throw new \InvalidArgumentException("Unknown option $option.");
        }
    }
1227629
public function setSelectedOption( $value ) {
        foreach( $this->children as $option ) {
            if( $option->getAttribute( 'value' ) == $value ) {
                $option->setAttribute( 'selected', true );
            }
        }
    }