public function withQueryParameter(string $parameterName, $value): InternalRequest
    {
        $query = $this->modifyQueryParameter(
            $this->uri->getQuery() ?? '',
            $parameterName,
            $value
        );

        $target = clone $this;
        $target->uri = $target->uri->withQuery($query);
        return $target;
    }
public function withQueryParameter(string $parameterName, $value): InternalRequest
    {
        $query = $this->modifyQueryParameter(
            $this->uri->getQuery() ?? '',
            $parameterName,
            $value
        );

        $target = clone $this;
        $target->uri = $target->uri->withQuery($query);
        return $target;
    }
public function withQueryParameter ( string $ parameterName , $ value ) : InternalRequest { $ query = $ this -> modifyQueryParameter ( $ this -> uri -> getQuery ( ) ?? '' , $ parameterName , $ value ) ; $ target = clone $ this ; $ target -> uri = $ target -> uri -> withQuery ( $ query ) ; return $ target ; }
Adds or overrides parameter on existing query.

@param string $parameterName
@param null|int|float|string $value
@return InternalRequest
Adds or overrides parameter on existing query .