WordPress\AiClientDependencies\Nyholm\Psr7
Uri::withQuery
Method of the class: Uri{}
No Hooks.
Returns
static.
Usage
$Uri = new Uri(); $Uri->withQuery( $query ): UriInterface;
- $query(required)
- .
Uri::withQuery() 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;
}