Creates a new parameter.

@param string $name
@param mixed  $value
510329
public function offsetSet($name, $value)
    {
        if (is_int($name)) {
            parent::offsetSet($name, $value);
            // @codeCoverageIgnoreStart
            // This will never be reached, because an exception is always
            // thrown.
            return;
            // @codeCoverageIgnoreEnd
        }

        $param = new Parameter($this->root, $name, $value);
        $this->parameters[$param->name] = $param;
    }
184575
public function setArgument($name, $value) {
        if (!$this->definition->hasArgument($name)) {
            throw new \InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
        }

        $this->arguments[$name] = $value;
    }
1230541
private function setParameter($name, $value)
    {
        switch ($name) {

            case 'email':
                $this->email = (string) $value;
                break;

            default:
                throw new \InvalidArgumentException('Not allowed parameter: '.$name);
                break;
        }
    }
641722
function setParameter($name, $value)
    {
        $this->fromFieldName = $name;
        $this->untilFieldName = $name;

        $this->fromFieldValue = $this->untilFieldValue = $value;

        return $this;
    }
566365
public function setParam($name, $value=null) {
		if(is_array($name)) {
			foreach($name as $k=>$v)
				$this->setParam($k, $v);
			return $this;
		}
		$this->params[$name] = $value;
		return $this;
	}
33208
public function & SetParam ($name = '', $value = '') {
		/** @var $this \MvcCore\Request */
		if ($this->params === NULL) $this->initParams();
		$this->params[$name] = $value;
		return $this;
	}
514814
public function set(string $name, string $value): void
    {
        $this->parameters[$name] = $value;
    }
363916
public function add($name, $value = null)
    {
        $name = self::normalizeName($name);
        $value = self::normalizeValue($value);

        if (!isset($this->parameters[$name])) {
            $this->parameters[$name] = [];
        } elseif (!is_array($this->parameters[$name])) {
            $this->parameters[$name] = (array) $this->parameters[$name];
        }

        $this->parameters[$name][] = $value;
    }
1261084
public function addQueryParameter($name, $value)
    {
        Validate::isString($name, 'name');
        Validate::isString($value, 'value');

        $this->_queryParams[$name] = $value;
    }
518875
protected function setQueryParameter(string $name, string $value): void
    {
        $this->queryParameters->set($name, $value);
    }
480302
public function setParameterGet($name, $value = null)
	{
		// Verifying if is array
		if (is_array($name)) {
			foreach ($name as $k => $v) {
				$this->setParameterGet($k,$v);
			}
		} else {
			$parray = &$this->paramsGet;
				
			if (is_null($value)) {
				if (isset($parray[$name])) unset($parray[$name]);
			} else {
				$parray[$name] = $value;
			}
		}
	
		return $this;
	}
246554
public function addFormParam($name, $value)
    {
        $this->options[GuzzleRequestOptions::FORM_PARAMS][$name] = $value;

        return $this;
    }
221429
void addParameter(String name, String value) {
        params.add(new Parameter(name, value));
    }
651419
public function newParameterPart($name, $value, $language = null)
    {
        return new ParameterPart($this->charsetConverter, $name, $value, $language);
    }
1343390
public function add($name, $value = null)
    {
        if (empty($name)) {
            return $this;
        }

        $params = (!is_array($name) ? array($name => $value) : $name);

        $query = $this->query(true);

        foreach ($params as $key => $val) {
            if (empty($val)) {
                unset($query[$key]);
            } elseif (!empty($val)) {
                $query[$key] = $val;
            }
        }

        $query              = http_build_query($query);
        $this->url['query'] = $query;

        return $this;
    }
446244
public function create($name, $value)
    {
        if (!empty($this->callbacks[$name])) {
            return call_user_func($this->callbacks[$name], $name, $value);
        }

        return $this->createBasic($name, $value);
    }
583775
public function addField(string $name, string $value) : void
    {
        $this->fields[$name][] = $value;
    }