src/BaiduBce/BceBaseClient.php
private function computeEndpoint()
    {
        $protocol = $this->config[BceClientConfigOptions::PROTOCOL];
        if ($this->regionSupported) {
            return sprintf(
                '%s://%s.%s.%s',
                $protocol,
                $this->serviceId,
                $this->config[BceClientConfigOptions::REGION],
                Bce::DEFAULT_SERVICE_DOMAIN
            );
        } else {
            return sprintf(
                '%s://%s.%s',
                $protocol,
                $this->serviceId,
                Bce::DEFAULT_SERVICE_DOMAIN
            );
        }
    }
private function computeEndpoint()
    {
        $protocol = $this->config[BceClientConfigOptions::PROTOCOL];
        if ($this->regionSupported) {
            return sprintf(
                '%s://%s.%s.%s',
                $protocol,
                $this->serviceId,
                $this->config[BceClientConfigOptions::REGION],
                Bce::DEFAULT_SERVICE_DOMAIN
            );
        } else {
            return sprintf(
                '%s://%s.%s',
                $protocol,
                $this->serviceId,
                Bce::DEFAULT_SERVICE_DOMAIN
            );
        }
    }
private function computeEndpoint ( ) { $ protocol = $ this -> config [ BceClientConfigOptions :: PROTOCOL ] ; if ( $ this -> regionSupported ) { return sprintf ( '%s://%s.%s.%s' , $ protocol , $ this -> serviceId , $ this -> config [ BceClientConfigOptions :: REGION ] , Bce :: DEFAULT_SERVICE_DOMAIN ) ; } else { return sprintf ( '%s://%s.%s' , $ protocol , $ this -> serviceId , Bce :: DEFAULT_SERVICE_DOMAIN ) ; } }
compute endpoint based on the configuration and service id
@return string The endpoint
compute endpoint based on the configuration and service id