WordPress\AiClientDependencies\Nyholm\Psr7

Uri::withQuerypublicWP 1.0

Method of the class: Uri{}

No Hooks.

Returns

static.

Usage

$Uri = new Uri();
$Uri->withQuery( $query ): UriInterface;
$query(required)
.

Uri::withQuery() code WP 7.0

public function withQuery($query): UriInterface
{
    if ($this->query === $query = $this->filterQueryAndFragment($query)) {
        return $this;
    }
    $new = clone $this;
    $new->query = $query;
    return $new;
}