WordPress\AiClientDependencies\Nyholm\Psr7
Uri::getAuthority
Method of the class: Uri{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Uri = new Uri(); $Uri->getAuthority(): string;
Uri::getAuthority() Uri::getAuthority code WP 7.0.4
public function getAuthority(): string
{
if ('' === $this->host) {
return '';
}
$authority = $this->host;
if ('' !== $this->userInfo) {
$authority = $this->userInfo . '@' . $authority;
}
if (null !== $this->port) {
$authority .= ':' . $this->port;
}
return $authority;
}