Set dependent context

@param string $name
@param mixed $value
@param bool $allowOverride
160840
public function setDependentContext($name, $value, $allowOverride = false)
    {
        if (!$allowOverride && isset($this->dependentContext[$name])) {
            throw new \LogicException(sprintf("you are overriding an existing dependent context '%s', are you sure you meant to do this?", $name));
        }

        $this->dependentContext[$name] = $value;
    }
1225699
protected function _setField($name, $value)
    {
        // e.g. consumerBillingFirstname
        $this->_addressData[self::$PREFIX . $this->_addressType . $name] = (string) $value;
    }
957575
public function setHeader($name, $value, $replace=true)
    {
        if ($replace) {
            $this->removeHeader($name);
        }
        $this->_headers[] = [$name, $value];
    }
362066
public function cofigureSession (string $name, $value) : bool
    {
        if (!property_exists($this, $name)) return FALSE;
        $allowedProperties = ['expire', 'path', 'domain', 'secure', 'httponly'];
        if (!in_array(strtolower($name), $allowedProperties)) return FALSE;
        $this->$name = $value;                
        return TRUE;
    }
1145552
public void overrideSetting(String name, boolean value) {
        overrides.put(name, Boolean.toString(value));
    }
1325558
public function _set($name, $value)
    {
        $object = $this->getObject();
		$callable = function() use ($name, $value, $object) {
			if (!property_exists($object, $name) && !method_exists($object, '__set'))
			{
				throw new \Exception('Property ' . $name . ' doesn\'t exist on object of class ' . get_class($object));
			}
			$object->$name = $value;
		};
		$this->breakScopeAndExecute($callable);
    }
823536
public function setHeader($name, $value, $replace = false)
    {
        if (!$name || !$value) return;
        $name = $this->normalizeHeaderName($name);
        $setted = false;
        foreach ($this->headers as $key => $one) {
            if ($one['name'] == $name) {
                $this->headers[$key] = array('name' => $name, 'value' => $value, 'replace' => $replace);
                $setted = true;
                break;
            }
        }
        if ($setted === false) {
            $this->headers[] = array('name' => $name, 'value' => $value, 'replace' => $replace);
        }
    }
248901
protected function setVirtualValue($name, $value)
    {
        $result = $this->callSetter($name, $value);
        if (!$result) {
            throw new InvalidArgumentException('Invalid virtual column: ' . $name);
        }

        return $this;
    }
1020034
private function setPaginationLink($name, $value)
    {
        if (! is_string($value) and ! is_null($value)) {
            throw new ValidationException('property "' . $name . '" has to be a string or null, "' . gettype($value) . '" given.');
        }

        // null is ignored
        if (! is_null($value)) {
            $this->set($name, strval($value));
        }
    }
138194
public void overrideSetting(String name, long value) {
        overrides.put(name, Long.toString(value));
    }
1032879
public function addHeader($name, $value, $overWrite = true)
    {
        if (!array_key_exists($name, $this->headers) || $overWrite) {
            $this->headers[$name] = $value;
        } else {
            $this->headers[$name] = $this->headers[$name] . self::HEADER_SEPARATOR . $value;
        }
    }
1326070
public function set($key, $value, $override = true) {
        if(is_null($key)) return;
        if(!$override && array_key_exists($key, $this->data)) return;
        $this->data[$key] = $value;        
    }
1334996
public function offsetSet($name, $value)
	{
		if ($name === null)
		{
			throw new InvalidArgumentException('The argument name cannot be null.');
		}

		$this->setArgument($name, $value);
	}
503013
public function setOption($name, $value)
    {
        if (!is_null($this->new)) {
            //====================================================================//
            // Impact Block Data Array
            $this->new->option[$name] = $value;
        }

        return $this;
    }
1070024
public function setValue($name, $value) {
		if (substr($name, -1) === '_') {
			throw new InvalidArgumentException('$name cannot end with "_"');
		}
		$this->remove($name);
		$this->{$name} = $value;
		return $this;
	}
1298463
public function setParameter(String $key, $value, Bool $override=false)
	{
		if ($this->getParameter($key)) {
			$defValue = $this->getParameter($key);
			$this->parameters[$key] = [$defValue];
			$this->parameters[$key][] = $value;
			return;
		}

		$this->parameters[$key] = $value;
	}
602008
public function setAttribute(string $name, $value)
    {
        if (array_key_exists($name, $this->attributes)) {
            throw new AttributeOverrideException($this, $name);
        }

        $this->attributes[$name] = $value;
    }