Adds specific variable to the Notifications array.

Notification::set('success', 'Data has been saved with success!');
Notification::set('errors', 'Data not saved!');

@param string $key   Variable name
@param mixed  $value Variable value
430380
public static function set(string $key, $value) : void
    {
        $_SESSION[Notification::SESSION_KEY][$key] = $value;
    }
1018752
protected function conditionalSet($key, $value)
    {
        if (!$this->has($key)) {
            $this->set($key, $value);
        }
    }
918027
protected function setKey($key, $value)
    {
        if ($key == $this->_keyName) {
            $this->_keyValue = $value;
            $this->_key['value'] = $value;
        }
    }
1290848
public function addValue(string $key, string $value) : void
    {
        $this->map[$key] = $value;
    }
617272
private function set($key, $value = "")
    {
        if (property_exists($this, $key)) {
            $key = implode('', array_map('ucfirst', explode('_', $key)));
            $this->{'set' . $key}($value);
        }
    }
252432
final public static function set($key, $value)
	{
		self::_checkInstance();
		self::$_instance->offsetSet($key, $value);
	}
789466
public function addAppData(string $key, $value = null): void
    {
        $this->_additionalAppData[$key] = $value;
    }
435643
public function setConfigVariable($key, $value)
    {

        if (!$key) {
            return false;
        }

        $this->setting->$key = $value;

        return $this;
    }
771687
public static function set($key, $value) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		static :: $data[$key] = $value;
	}
804596
public static function set($key, $value)
    {
        putenv(vsprintf('%s=%s', [$key, $value]));
        $_ENV[$key] = $value;
        $_SERVER[$key] = $value;
    }
851871
public function offsetSet($key, $value)
    {
        $key = strtr(strtolower($key), '_', '-');

        $this->_data[$key] = $value;
    }
701849
public function add ($key , $value) {
        if (!$this->beforeAdd()) {
            return false;
        }
        if (!$this->getConnection ()->getClient ()->zadd ($this->name , $value , $key)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        $this->afterAdd();
        return true;
    }
335160
public function add($key, $value) {
		$this->validateValue($value);
		if (!isset($this->variables[$key])) {
			$this->variables[$key] = [];
		}

		if (!is_array($this->variables[$key])) {
			$this->variables[$key] = [$this->variables[$key]];
		}

		$this->variables[$key][] = $value;
	}
476035
public static function set(string $key, string $value): void
    {
        /* Check if initialized */
        if (!self::$initialized) {
            self::initialize();
        }

        /* Check if key exists */
        if (!self::$configs[$key]) {
            return;
        }

        /* Check if values are the same */
        if (self::$configs[$key] == $value) {
            return;
        }

        /* Write to current array */
        self::$configs[$key] = $value;

        /* Write to file */
        file_put_contents(self::$path, self::convertConfigsToFile());
    }
715574
public function setData($key, $value)
    {
        $data = $this->findData($key);

        if (!isset($data)) {
            $data = $this->createData($key);
        }

        $data->setValue($value);
    }
1081980
public function set($key, $value)
    {
        $key = trim($key, '.');
        if (strpos($key, '.') !== false) {
            $array =& $this->_items;
            foreach (explode('.', $key) as $v)
                $array =& $array[$v];
            $array = $value;
        } else {
            $this->_items[$key] = $value;
        }
    }
1025499
public static function addTo($key, $value)
  {
    if (isset(self::$vars[$key])) {
      self::$vars[$key] .= $value;
    } else {
      self::$vars[$key] = $value;
    }
  }