src/Zicht/Bundle/UrlBundle/Url/Params/Params.php
public function with($key, $value, $multiple = true)
    {
        $ret = clone $this;
        $ret = self::doWith($ret, $key, $value, $multiple);

        return $ret;
    }
public function with($key, $value, $multiple = true)
    {
        $ret = clone $this;
        $ret = self::doWith($ret, $key, $value, $multiple);

        return $ret;
    }
public function with ( $ key , $ value , $ multiple = true ) { $ ret = clone $ this ; $ ret = self :: doWith ( $ ret , $ key , $ value , $ multiple ) ; return $ ret ; }
Duplicates the current instance with one value changed.

- If the value already exists, the value is removed;
- If the value does not exist, it is added;
- If the value exists, and 'multiple' is false, it is replaced.
- If the value does not exists, and 'multiple' is false, it is added.

The $multiple parameter is typically useful for paging or other parameters.

@param string $key
@param string $value
@param bool $multiple
@return Params
Duplicates the current instance with one value changed .