WordPress\AiClientDependencies\Nyholm\Psr7
Uri::withFragment
Method of the class: Uri{}
No Hooks.
Returns
static.
Usage
$Uri = new Uri(); $Uri->withFragment( $fragment ): UriInterface;
- $fragment(required)
- .
Uri::withFragment() Uri::withFragment code WP 7.0
public function withFragment($fragment): UriInterface
{
if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
return $this;
}
$new = clone $this;
$new->fragment = $fragment;
return $new;
}