WordPress\AiClientDependencies\Nyholm\Psr7

Uri::getAuthority │ public │ WP 1.0

Метод класса: Uri{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Uri = new Uri();
$Uri->getAuthority(): string;

Код Uri::getAuthority() WP 7.1.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;
}