add params

@param   mixed   $value
@param   mixed   $key
436428
public function addParam($value, $key = null)
    {
        if ($key === null || is_int($key)) {
            $this->params[] = $value;
        } else {
            $this->params[$key] = $value;
        }
    }
1263479
public function add($key, $value) {
        $node = new Node();
        $node->setKey($key);
        $node->setValue($value);
        $this->append($node);
    }
67584
public function add($key, $value) {
        if (isset($this->data[$key])) {
            throw new \InvalidArgumentException("Key $key is already set");
        }
        $this->data[$key] = $value;
    }
1303313
public void add(final Param key, final String value) {
        if (StringUtils.isNotBlank(value)) {
            parameters.put(key, value);
        }
    }
1077515
private function alter($key, $value)
    {
        if ($this->has($key)) {
            $this->data[$key][self::CACHE_PARAM_VALUE] = $value;
        }
    }
51546
public function setParam($key, $value)
    {
        $this->data[self::P_PARAMS][$key] = $value;

        return $this;
    }
288441
public function setParamByKey($key, $value){

         if( array_key_exists( $key, array_dot( $this->service['param'] ) ) ){

             array_set($this->service['param'], $key, $value);
         }

         return $this;
    }
389333
public function addQueryParameter(string $key, string $value): self
    {
        if ($this->query === null) {
            $this->query = "{$key}={$value}";
        } else {
            $this->query = "{$this->query}&{$key}={$value}";
        }

        return $this;
    }
1279013
public function setParam(string $key, $value): Mapping
    {
        $this->_mapping[$key] = $value;

        return $this;
    }
1297037
public function add($key, $value) {
		if ($key === null) {
			if (!is_array($this->data)) {
				$this->data = array();
			}
			$this->data[] = $value;
		} else {
			if (isset($this->data[$key]) && is_array($this->data[$key])) {
				$this->data[$key][] = $value;
			} else {
				$this->data[$key] = array();
				$this->data[$key][] = $value;
			}
		}
	}
475597
public function append($value, $key = null): Arrayy
    {
        $this->checkTypeWrapper($value);

        return parent::append($value, $key);
    }
40512
public function setParameter($key, $value)
	{
		if (is_bool($value)) $value = ($value ? 'true' : 'false');

		$this->parameters[$key] = $value;
	}
1113064
static function set( $key, $value ) {
        $me = self::getInstance();
        $me->parameters[$key] = $value;
    }
1222596
public function add($key, $value)
    {
        if (!is_null($value)) {
            $this->data[$key] = $value;
        }

        return $this;
    }
89949
public function setCustomConfig($key, $value) {
        if ($this->searchParams->config->customConfig == null) {
            $this->searchParams->config->customConfig = array();
        }

        $this->searchParams->config->customConfig[$key] = $value;
    }
837381
public function setCustomParam($key, $value)
    {
        $this->customParams[(string)$key] = (string)$value;

        return $this;
    }
19913
public function set($key, $value)
    {
        $keys = explode('.', $key);

        $data = &$this->parameters;

        while (count($keys) > 1) {
            $pkey = $keys[0];

            if (!array_key_exists($pkey, $data) || !is_array($data[$pkey])) {
                $data[$pkey] = [];
            }

            $data = &$data[$pkey];
            array_shift($keys);
        }

        $data[$keys[0]] = $value;

        return $this;
    }