Sets a flash value for the _next_ request, optionally also in the _current_ request.

@param string $name The name
@param mixed $value The value
@param bool $current If true, also sets flash value for the _current_ request.
542386
public function set(string $name, $value, bool $current = false): void
    {
        if ($current) {
            $this->curr->offsetSet($name, $value);
        }
        $this->next->offsetSet($name, $value);
    }
1006068
public function flashNow($key, $value)
    {
        if (isset($this->environment['yee.flash'])) {
            $this->environment['yee.flash']->now($key, $value);
        }
    }
444255
public function setFormParameter(string $name, string $value): void
    {
        parent::setFormParameter($name, $value);
    }
550517
protected static function set(string $name, string $value): void
    {
        $name = \trim($name);

        if (
            (isset($name[0]) && $name[0] === '#') ||
            (static::$immutable && static::get($name) !== null)
        ) {
            return;
        }

        static::$names[] = $name;
        $value = \trim($value);

        // If PHP is running as an Apache module and an existing
        // Apache environment variable exists, overwrite it
        if (
            \function_exists('\\apache_setenv') &&
            \function_exists('\\apache_getenv') &&
            \apache_getenv($name) !== false
        ) {
            \apache_setenv($name, $value);
        }

        if (\function_exists('\\putenv')) {
            \putenv("$name=$value");
        }

        $_ENV[$name] = $value;
        $_SERVER[$name] = $value;
    }
616715
public function setRequestHeader($name, $value)
    {
        if (!is_string($name))
            throw new \InvalidArgumentException('Argument 1 expected to be string, '.gettype($name).' seen.');

        if (!is_string($value))
            throw new \InvalidArgumentException('Argument 2 expected to be string, '.gettype($value).' seen.');

        if (($name = trim($name)) === '')
            throw new \RuntimeException('Argument 1 cannot be empty string.');

        $this->requestHeaders[$name] = $value;

        return $this;
    }
1092077
protected function _setField($name, $value)
    {
        // e.g. consumerBillingFirstname
        $this->_consumerData[self::$PREFIX . $name] = (string) $value;
    }
772371
public function set($name, $value)
    {
        $this->stale = true;

        try {
            if ($value === null) {
                $this->model->where('name', '=', $name)->delete();
            } else {
                $this->model->updateOrCreate(compact('name'), compact('value'));
            }
        } catch (Exception $e) {
            throw new WriteException($e);
        }
    }
693071
public function setAttribute( $name, $value ) {
        if( strtolower( $name ) == 'value' ) {
            $this->setSelectedOption( $value );
        } else {
            parent::setAttribute( $name, $value );
        }
    }
133566
public function setAttrData(string $name, ?string $value): void
  {
    $this->attributes['data-'.$name] = $value;
  }
342494
public function setAttribute(string $name, $value): void
	{
		Arr::set($this->attributes, $name, $value);
	}
361995
@SuppressWarnings("unchecked")
    protected void flash(String name, Object value) {
        checkFlasher();
        ((Map) session().get("flasher")).put(name, value);
    }
1179470
public function set($name, $value, $first = false)
    {
        if ($first && isset($this->item[$name])) {
            array_unshift($this->item[$name], $value);
        } else {
            $this->item[$name][] = $value;
        }
    }
1249097
public function set(string $name, $value)
    {
        $this->_data[$name] = $value;

        if(!is_object($value)) {
            $this->_changed[$name] = $value;
        }
    }
915440
public function setFlashVar($key, $value) {
        $this->flashVar[$key] = $value;
        $this->set($key, $value);
    }
1328242
private function set($name, $value)
	{
		if (property_exists($this, $name))
		{
			$this->$name = $value;
			$this->attributes[$name] = $value;
			return true;
		}

		return false;
	}
511447
public function now($key, $value)
    {
        $this->put($key, $value);

        $this->push('_flash.old', $key);
    }
1328351
public function set(string $name, string $value): void
    {
        $this->dataContainer[RequestDataContainer::VAR_HEADER_RAW][$name] = $value;
    }