Add a parameter by name

The value will be dynamically generated by the caller

@param  string $paramName
@return self
490736
public function addParameterByName($paramName)
	{
		if (array_key_exists($paramName, $this->params))
		{
			throw new InvalidArgumentException("Parameter '" . $paramName . "' already exists");
		}

		$this->params[$paramName] = null;

		return $this;
	}
1076593
public function setParameter($key, $value)
    {
        if (!$this->parameters) {
            $this->parameters = array();
        }

        $this->parameters[$key] = $value;

        return $this;
    }
384861
protected function setUsername($name) {
        if (!is_string($name)) throw new IllegalTypeException('Illegal type of parameter $name: '.gettype($name));
        if (!strlen($name))    throw new InvalidArgumentException('Invalid parameter $name: "'.$name.'" (empty)');

        $this->username = $name;
        return $this;
    }
753036
public function setMvcParam(string $paramName, $value = null)
    {
        $value = $value === null ? null : trim($value);
        switch ($paramName) {
            case 'controller' : 
            case 'action' : 
                $this->mvcUrl[$paramName] = $value;
                break;
            default : 
                $this->mvcUrl['params'][$paramName] = $value;
                break;
        }
        return $this;
    }
1364471
public function addParameter(Parameter $parameter)
    {
        if (array_key_exists($parameter->getName(), $this->definitions)) {
            throw new \Exception(sprintf('Parameter with name \'%s\' already exists!', $parameter->getName()));
        }

        $this->definitions[$parameter->getName()] = $parameter;

        if ($parameter->getIsRequired()) {
            $this->required[] = $parameter->getName();
        }

        return $this;
    }
985593
public static function create(string $parameterName, string $headerName) : self
    {
        return new self($parameterName, $headerName, true);
    }
345861
public function addParam(\Deflection\Element\Param $param)
    {
        $element = $param->getElement();
        $this->params = array_merge($this->params, array(''), $element);
        return $this;
    }
3653
public B addArrayParameter(final String paramName, final String... array) {
        for (String value : array) {
            httpParams.addParameter(paramName, value);
        }
        return self();
    }
611051
public function params(...$params): self
    {
        $this->params = $params;
        array_push($this->params, $this->event);
        return $this;
    }
221429
void addParameter(String name, String value) {
        params.add(new Parameter(name, value));
    }
914799
public function addName(Name $name)
    {
        $names = array_map('strval', $this->names->toArray());
        if (!in_array($name->getName(), $names)) {
            $this->names->add($name);
            $name->setItem($this);
        }

        return $this;
    }
1333482
public function setParameter(string $parameter, string $value): self
    {
        $this->parameters[$parameter] = $value;

        return $this;
    }
350816
public function setPhpName($phpName = null)
    {
        if (null === $phpName) {
            $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
        } else {
            $this->phpName = $phpName;
        }
    }
33208
public function & SetParam ($name = '', $value = '') {
		/** @var $this \MvcCore\Request */
		if ($this->params === NULL) $this->initParams();
		$this->params[$name] = $value;
		return $this;
	}
51546
public function setParam($key, $value)
    {
        $this->data[self::P_PARAMS][$key] = $value;

        return $this;
    }
1242601
public function setParam($key, $value)
        {
            $key = (string) $key;

            if ((null === $value) && isset($this->_params[$key])) {
                unset($this->_params[$key]);
            } elseif (null !== $value) {
                $this->_params[$key] = $value;
            }

            return $this;
        }
261700
public function withParameters(array $parameters): self
    {
        $this->parameters = [];
        foreach ($parameters as $name => $value) {
            $this->withParameter($name, $value);
        }

        return $this;
    }