WordPress\AiClientDependencies\Nyholm\Psr7

Uri::withQuery │ public │ WP 1.0

Метод класса: Uri{}

Хуков нет.

Возвращает

static.

Использование

$Uri = new Uri();
$Uri->withQuery( $query ): UriInterface;
$query(обязательный)
.

Код 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;
}