Braintree\Http::_getAuthorization PHP 메소드

_getAuthorization() 개인적인 메소드

private _getAuthorization ( )
    private function _getAuthorization()
    {
        if ($this->_useClientCredentials) {
            return ['user' => $this->_config->getClientId(), 'password' => $this->_config->getClientSecret()];
        } else {
            if ($this->_config->isAccessToken()) {
                return ['token' => $this->_config->getAccessToken()];
            } else {
                return ['user' => $this->_config->getPublicKey(), 'password' => $this->_config->getPrivateKey()];
            }
        }
    }