WordPress\AiClientDependencies\Nyholm\Psr7
Uri::withQuery
Метод класса: Uri{}
Хуков нет.
Возвращает
static.
Использование
$Uri = new Uri(); $Uri->withQuery( $query ): UriInterface;
- $query(обязательный)
- .
Код Uri::withQuery() Uri::withQuery WP 7.1.2
public function withQuery($query): UriInterface
{
if ($this->query === $query = $this->filterQueryAndFragment($query)) {
return $this;
}
$new = clone $this;
$new->query = $query;
return $new;
}