WordPress\AiClientDependencies\Nyholm\Psr7

Uri::withPathpublicWP 1.0

Method of the class: Uri{}

No Hooks.

Returns

static.

Usage

$Uri = new Uri();
$Uri->withPath( $path ): UriInterface;
$path(required)
.

Uri::withPath() code WP 7.0

public function withPath($path): UriInterface
{
    if ($this->path === $path = $this->filterPath($path)) {
        return $this;
    }
    $new = clone $this;
    $new->path = $path;
    return $new;
}