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