Amp\Artax\Uri::getAuthority PHP 메소드

getAuthority() 공개 메소드

public getAuthority ( $hiddenPass = true )
    public function getAuthority($hiddenPass = true)
    {
        $authority = $this->user;
        $authority .= $this->pass !== '' ? ':' . ($hiddenPass ? '********' : $this->pass) : '';
        $authority .= $authority ? '@' : '';
        if ($this->isIpV6) {
            $authority .= $this->port ? "[{$this->host}]:{$this->port}" : "[{$this->host}]";
        } else {
            $authority .= $this->host;
            $authority .= $this->port ? ':' . $this->port : '';
        }
        return $authority;
    }