@param string $key
@param mixed  $value

@throws \Kerox\Messenger\Exception\MessengerException
774785
private function isBool(string $key, $value): void
    {
        if (!\is_bool($value) &&
            \in_array($key, [self::CONFIG_KEY_NLP_ENABLED, self::CONFIG_KEY_VERBOSE], true)
        ) {
            throw new InvalidTypeException(sprintf('%s must be a boolean.', $key));
        }
    }
208802
public function setValue($key, $value) {
        $this->startSession();
        $_SESSION [$key] = $value;
        $this->sessionData = null;
        session_write_close();
    }
265697
public function offsetSet($key, $value)
    {
        if ($key) {
            $this->lines[$key] = $value;
        } else {
            $this->lines[] = $value;
        }
    }
702436
public function setBoth($key, $value = null): void
    {
        $this->_controller->set($key, $value);
        $this->setJson($key, $value);
    }
1023566
public function set($key, $value = null)
    {
        try {
            $this->table()->insert(compact('key', 'value'));
        } catch (Exception $e) {
            $this->table()->where('key', '=', $key)->update(compact('value'));
        }
    }
772327
public function offsetSet( $key, $value )
	{
		if( !isset( $this->____pairs ) )
			$this->getPairs();
		if( !array_key_exists( $key, $this->____pairs ) )
			throw new Exception( 'Pair Key "'.$key.'" is not set in Row.' );
		$this->____pairs[$key]	= $value;
	}
252432
final public static function set($key, $value)
	{
		self::_checkInstance();
		self::$_instance->offsetSet($key, $value);
	}
213157
public function set($key, $value)
    {
        $keys = explode('.', $key);
        $key_string = '';
        foreach ($keys as $i => $_key) {
            $key_string = $key_string . ((is_numeric($_key) || $_key === '') ? "[{$_key}]" : "['{$_key}']");
        }
        $script = sprintf('$this->_params%s = $value;', $key_string);
        eval($script);
    }
1190048
public function set($key, $value = null)
    {
        if (!$this->id) {
            throw new Exception('Cannot use set without active session.');
        }
        if (is_array($key)) {
            foreach ($key as $k => $value) {
                $this->data[$k] = $value;
            }
        } else {
            $this->data[$key] = $value;
        }
        return true;
    }
52878
static public function set($key, $value) {
        $config = &self::$_config;
        
        Utils::arraySet($config, $key, $value);
    }
430380
public static function set(string $key, $value) : void
    {
        $_SESSION[Notification::SESSION_KEY][$key] = $value;
    }
590388
public function setMessage($key, $value, $language) {
		$messageFile = $this->getMessageLanguageForLanguage($language);
		$messageFile->setMessage($key, $value);
		$messageFile->save();
	}
1148075
public static function keyExists($value, $key, $message = null)
    {
        if (!array_key_exists($key, $value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected array key %2$s to exist',
                Helper::typeToString($value),
                Helper::valueToString($key)
            ));
        }
    }
298111
public function flash($key, $value)
    {
        if (isset($this->environment['yee.flash'])) {
            $this->environment['yee.flash']->set($key, $value);
        }
    }
808200
public function remove($key, $value)
    {
        if (!$key)
        {
            throw new Exception('key may not be null.');
        }
        if (!is_array($value))
        {
            $value = [$value];
        }
        $this->_performOperation($key, new RemoveOperation($value));
    }
1183136
public function set(string $key, string $value): bool
    {
        if (!$this->users_id) {
            throw new Exception('No users is set to save config');
        }

        $config = new self();
        $config->users_id = $this->users_id;
        $config->name = $key;
        $config->value = $value;
        if (!$config->save()) {
            throw new Exception(current($config->getMessages()));
        }

        return true;
    }
1077561
public function offsetSet($key, $value)
    {
        if (null === $key) {
            throw new \Exception('Config values must contain a key.');
        }
        $this->config[$key] = $value;
    }