Set a setting on configuration object

@param string $name Name of setting variable.
@param mixed $value Mixed value to store on configuration file.
@throws \Exception
486559
public function set($name, $value)
    {
        if (!is_string($name)) {
            throw new \Exception("Invalid configuration key.");
        }

        $this->config[$name] = $value; //$this->prepare($value, $name);
    }
640904
public function set($name, $value) {
        $setting = &$this->settings;
        $names   = explode('.', $name);
        $lname   = array_pop($names);
        if ($names) {
            foreach ($names as $n) {
                if (!isset($setting[ $n ])) {
                    $setting[ $n ] = [];
                }
                $setting = &$setting[ $n ];
            }
        }
        $setting[ $lname ] = $value;
    }
1073
public function set($name, $value = null)
    {
        if (is_array($name)) {
            $this->parameters = array_replace($this->parameters, $name);
        } else {
            $this->parameters[trim(strtolower($name))] = is_string($value) ? trim($value) : $value;
        }
    }
386735
private function preSet($name, $value) {
        if ( array_search($value, $this->_container) !== false ) {
            throw new Exception(__CLASS__ . "::" . __FUNCTION__ . 
                "('$name', value)" . self::ITEM_EXISTS);    
        }
    }
191553
public function setOption( $name, $value ) {
        if( key_exists( $name, $this->options) )
            $this->options[$name] = $value;
        else
            throw new Exception\OptionDoesNotExist( $name );
    }
491937
public function set($name, $value)
    {
        if (is_array($value)) {
            $value = new ObjectConfig($value);
        }

        parent::set($name, $value);
    }
1077561
public function offsetSet($key, $value)
    {
        if (null === $key) {
            throw new \Exception('Config values must contain a key.');
        }
        $this->config[$key] = $value;
    }
230669
public function setOption($name, $value)
    {
        if (strpos($name, 'CURLOPT_') !== 0 || !defined($constant = strtoupper($name))) {
            /**
             * @var \OxidEsales\Eshop\Core\Exception\StandardException $exception
             */
            $exception = oxNew(\OxidEsales\Eshop\Core\Exception\StandardException::class);
            $lang = \OxidEsales\Eshop\Core\Registry::getLang();
            $exception->setMessage(sprintf($lang->translateString('EXCEPTION_NOT_VALID_CURL_CONSTANT', $lang->getTplLanguage()), $name));
            throw $exception;
        }

        $this->_aOptions[$name] = $value;
    }
560257
public function setParam($name, $value) {
        if (in_array($name, $this->_textParamNames)) {
            $this->_setTextParam($name, $value);
        } else if (in_array($name, $this->_rawParamNames)) {
            $this->_setRawParam($name, $value);
        } else {
            throw new CPS_Exception(array(array('long_message' => 'Invalid request parameter', 'code' => ERROR_CODE_INVALID_PARAMETER, 'level' => 'REJECTED', 'source' => 'CPS_API')));
        }
    }
505290
public function set(string $name, $value): void
    {
        self::doInit();

        $_SESSION[$name] = $value;
    }
589594
public function setValue($name, $value = '')
    {
        if (\is_array($name)) {
            foreach ($name as $key => $val) {
                if (isset($this->$key)) {
                    $this->$key = $val;
                }
            }
        } else {
            if (isset($this->$name)) {
                $this->$name = $value;
            }
        }
    }
1256594
public function setSetting( string $name, $value ): self
	{
		if (in_array($name, self::SETTINGS_INIT_ONLY))
			throw new SettingsException("Settings option '$name' can only be set on initialization of the library.");

		$this->settings[$name] = $value;
		return $this;
	}
656565
public function setOption($name, $value) {
		$this->validateName($name);
		$this->config[$name] = $value;
	}
868170
public function setParameter($name, $value)
    {
        $this->temp_settings[$name] = $value;
        
        $this->temp_settings["__dirty"][$this->context] = true;
    }
381961
protected function storeOriginalConfiguration($name, $value) {
    if (!isset($this->originalConfiguration[$name])) {
      $this->originalConfiguration[$name] = $value;
    }
  }
667365
public function setOption(string $name, $value): Configurator
    {
        $this->validateName($name);
        $this->config[$name] = $value;

        return $this;
    }
1011641
public function setConfig($key, $value)
    {
        if (!array_key_exists($key, $this->configuration)) {
            throw new \Exception(
                sprintf('key "%s" does\'t exist', $key)
            );
        }

        $this->configuration[$key] = $value;
    }