src/Domain/Value/Identifier/Uri.php
protected static function buildAuthority(?string $userInfo, ?string $host, ?int $port): ?string
    {
        if ($host === null) {
            return null;
        }

        $authority = '';

        if ($userInfo !== null) {
            $authority .= sprintf('%s@', $userInfo);
        }
        $authority .= $host;
        if ($port !== null) {
            $authority .= sprintf(':%d', $port);
        }

        return $authority;
    }
protected static function buildAuthority(?string $userInfo, ?string $host, ?int $port): ?string
    {
        if ($host === null) {
            return null;
        }

        $authority = '';

        if ($userInfo !== null) {
            $authority .= sprintf('%s@', $userInfo);
        }
        $authority .= $host;
        if ($port !== null) {
            $authority .= sprintf(':%d', $port);
        }

        return $authority;
    }
protected static function buildAuthority ( ? string $ userInfo , ? string $ host , ? int $ port ) : ? string { if ( $ host === null ) { return null ; } $ authority = '' ; if ( $ userInfo !== null ) { $ authority .= sprintf ( '%s@' , $ userInfo ) ; } $ authority .= $ host ; if ( $ port !== null ) { $ authority .= sprintf ( ':%d' , $ port ) ; } return $ authority ; }
Builds authority from parts

@param string|null $userInfo The user info
@param string|null $host     The host
@param int|null    $port     The port

@return string|null
Builds authority from parts