WordPress\AiClientDependencies\Nyholm\Psr7

Uri::withFragmentpublicWP 1.0

Method of the class: Uri{}

No Hooks.

Returns

static.

Usage

$Uri = new Uri();
$Uri->withFragment( $fragment ): UriInterface;
$fragment(required)
.

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;
}