WordPress\AiClientDependencies\Psr\Http\Message
UriInterface::withScheme
Return an instance with the specified scheme.
This method MUST retain the state of the current instance, and return an instance that contains the specified scheme.
Implementations MUST support the schemes "http" and "https" case insensitively, and MAY accommodate other schemes if required.
An empty scheme is equivalent to removing the scheme.
Метод класса: UriInterface{}
Хуков нет.
Возвращает
static. A new instance with the specified scheme.
Использование
$UriInterface = new UriInterface(); $UriInterface->withScheme( $scheme ): UriInterface;
- $scheme(строка) (обязательный)
- The scheme to use with the new instance.
Код UriInterface::withScheme() UriInterface::withScheme WP 7.0.4
public function withScheme(string $scheme): UriInterface;