WordPress\AiClientDependencies\Nyholm\Psr7
Uri::withFragment
Метод класса: Uri{}
Хуков нет.
Возвращает
static.
Использование
$Uri = new Uri(); $Uri->withFragment( $fragment ): UriInterface;
- $fragment(обязательный)
- .
Код Uri::withFragment() Uri::withFragment WP 7.1.2
public function withFragment($fragment): UriInterface
{
if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
return $this;
}
$new = clone $this;
$new->fragment = $fragment;
return $new;
}