Adds a variable to this message.

@param string $key   Key name (i.e: Action).
@param string $value Key value.

@return void
559866
protected function setKey($key, $value)
    {
        $key = strtolower((string)$key);
        $this->keys[$key] = (string)$value;
    }
1113064
static function set( $key, $value ) {
        $me = self::getInstance();
        $me->parameters[$key] = $value;
    }
841797
public function add($key, $value)
    {
        if (! isset($this->_params[$key])) {
            $this->_params[$key] = array();
        }
        $this->_params[$key][] = $value;
    }
1207324
public function add(string $key, $value)
    {
        $current = $this->get($key, []);
        $adds = is_array($value) ? $value : [$value];
        $this->set($key, array_merge($current, array_values($adds)));
    }
1297037
public function add($key, $value) {
		if ($key === null) {
			if (!is_array($this->data)) {
				$this->data = array();
			}
			$this->data[] = $value;
		} else {
			if (isset($this->data[$key]) && is_array($this->data[$key])) {
				$this->data[$key][] = $value;
			} else {
				$this->data[$key] = array();
				$this->data[$key][] = $value;
			}
		}
	}
1204130
protected function addParam($key, $value = null)
	{
		if (is_null($value))
		{
			$this->params[] = $key;
		}
		else
		{
			$this->params[$key] = $value;
		}

	}
996373
public static function setVar($key, $value)
    {
        $var = new Vars($key);
        $var->key = $key;
        $var->value = $value;
        return $var->save();
    }
638400
public function setQueryVariable($key, $value)
    {
        Validate::isString($key, 'key');
        Validate::isString($value, 'value');

        $this->_url->setQueryVariable($key, $value);
    }
915440
public function setFlashVar($key, $value) {
        $this->flashVar[$key] = $value;
        $this->set($key, $value);
    }
1351642
public static function assign($key, $value = null) {

		if(true === is_array($key)) {
			static :: $variables = array_merge(static :: $variables, $key);
		}
		else {
			static :: $variables[$key] = $value;
		}
	}
1170565
public function set(string $key, $value)
    {
        parent::set(Formater::normalize($key), [
            'key' => $key,
            'value' => $value
        ]);
    }
851871
public function offsetSet($key, $value)
    {
        $key = strtr(strtolower($key), '_', '-');

        $this->_data[$key] = $value;
    }
306001
public function set($key, $value = null)
    {
        if (is_array($key)) {
            $key = $this->flattenArray($key);
            $this->settings = array_merge($this->settings, $key);
        } else {
            $this->settings[$key] = $value;
        }
    }
402341
public function putVars($key, $value = null)
    {
        if (is_array($key)) {
            $variables = $key;
        } elseif (!is_null($value)) {
            $variables = [$key => $value];
        } else {
            throw new Exception('Try Assets::putVars(["foo" => "bar"]');
        }

        // First, we have to translate the variables
        // to something JS-friendly.
        $this->buildJavaScriptSyntax($variables);

        return $this;
    }
518552
public function set($key, $value)
    {
        $d = $this->all();
        $this->setIn($key, $value, $d);
        $this->setAll($d);
    }
252432
final public static function set($key, $value)
	{
		self::_checkInstance();
		self::$_instance->offsetSet($key, $value);
	}
551111
public static function setOption(string $key, $value): void
    {
        static::validateOptions([$key => $value]);
        static::$options[$key] = $value;
    }