Set a specific option of this View

@param string $optionName
@param mixed $value
@return void
@throws \Neos\Flow\Mvc\Exception
187912
public function setOption($optionName, $value)
    {
        if ($this->templatePaths instanceof TemplatePaths) {
            $this->templatePaths->setOption($optionName, $value);
        }
    }
1186883
public function setActionOption($actionName, $optionName, $optionValue)
    {
        $this->getAction($actionName)->setOption($optionName, $optionValue);

        return $this;
    }
1000660
function setOption( $option, $value )
    {
        if ( !in_array( $option, $this->Options ) )
        {
            // throwing an exception would make more sense, but we did not before - keep this for compat
            return false;
            //throw new Exception( "Option $option not supported" );
        }

        switch( $option )
        {
            case 'timeout':
                $this->Timeout = (int)$value;
                break;
            case 'login':
                $this->Login = $value;
                break;
            case 'password':
                $this->Password = $value;
                break;
            case 'authType':
                $this->AuthType = (int)$value;
                if ( $value != 1 )
                {
                    $this->ForceCURL = true;
                }
                break;
            case 'requestCompression':
                $this->RequestCompression = $value;
                break;
            case 'method':
                $this->Verb = strtoupper( $value );
                break;
            case 'acceptedCompression':
                $this->AcceptedCompression = $value;
                break;
            case 'proxyHost':
                $this->Proxy = $value;
                break;
            case 'proxyPort':
                $this->ProxyPort = ( (int)$value != 0 ? (int)$value : 8080 );
                break;
            case 'proxyUser':
                $this->ProxyLogin = $value;
                break;
            case 'proxyPassword':
                $this->ProxyPassword = $value;
                break;
            case 'proxyAuthType':
                $this->ProxyAuthType = (int)$value;
                if ( $value != 1 )
                {
                    $this->ForceCURL = true;
                }
                break;
            case 'forceCURL':
                $this->ForceCURL = (bool)$value;
                break;
            case 'debug':
                $this->Debug = (int)$value;
                break;
            case 'SSLVerifyHost':
                $this->SSLVerifyHost = (int)$value;
                break;
            case 'SSLVerifyPeer':
                $this->SSLVerifyPeer = (bool)$value;
                break;
            case 'SSLCAInfo':
                $this->SSLCAInfo = $value;
                break;
        }
        return true;
    }
106956
public function setOption($name, $value) {
    if (!array_key_exists($name, $this->options)) {
      throw new InvalidArgumentException(sprintf('Undefined option: "%s"', $name));
    }

    $this->options[$name] = $value;
    $this->getHttpClient()->setOption($name, $value);
  }
973625
public function setOption($option, $value)
    {
        $this->options[$option] = $value;
        curl_setopt($this->resource, $option, $value);

        return $this;
    }
930819
public function setFieldOption(string $option, $value): self
    {
        //Retrieve the single existing field for alteration.
        $params = $this->getParams();
        if (\count($params) < 1) {
            throw new InvalidException('No field has been set');
        }
        $key = \key($params);
        $params[$key][$option] = $value;

        return $this->setParam($key, $params[$key]);
    }
654643
public function setOption($name, $value = null)
    {
        // Set options
        if (is_array($name)) {
            foreach ($name as $k => $v) {
                $this->setOption($k, $v);
            }
            return $this;
        }

        if (method_exists($this, $method = 'set' . $name)) {
            return $this->$method($value);
        } else {
            $this->$name = $value;
            return $this;
        }
    }
78159
public function setOption($option, $value) {
        if(CurlOptions::checkOptionValue($option,$value)) {
            return curl_setopt($this->handle, $option, $value);
        }
    }
1055129
private function update_option( $name, $value ) {
            $this->_data[ $name ] = $value;

            $this->_storage->set_option( $this->_option_name, $this->_data, true );
        }
755047
public function addOption($option, $value = null)
    {
        if (is_array($option)) {
            $this->options = $option + $this->options;
        } else {
            $this->options[$option] = $value;
        }
    }
1192779
public function setFieldOption($field, $option, $value)
    {
        if (!isset($this->fields[$field])) {
            throw new \Exception("Cannot set field option: Field {$field} not found");
        }

        $this->fields[$field]['options'][$option] = $value;
    }
576055
public function setOption($name, $value)
    {
        Arr::set($this->options, $name, $value);

        return $this;
    }
1205540
public function setOption($option, $value)
    {
        if ($option === 'report') {
            throw new \RuntimeException('"report" is not a valid option name.');
        }

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

        return $this;
    }
1216616
public function setOption($option, $value)
    {
        $this->options[$option] = $value;
        $this->resolve($this->options);
    }
638413
public function setOption($option, $value)
    {
        if ($this->isValidOption($option)) {
            $this->options[$option] = $value;
        }

        return $this;
    }
598634
public function setCurlOption($option, $value)
    {
        $this->debug("setCurlOption option=$option, value=");
        $this->appendDebug($this->varDump($value));
        curl_setopt($this->ch, $option, $value);
    }
1219369
public function set(string $option, $value): self {
        $this->options[$option] = $value;

        return $this;
    }