Braintree\OAuthGateway::__construct PHP Method

__construct() public method

public __construct ( $gateway )
    public function __construct($gateway)
    {
        $this->_gateway = $gateway;
        $this->_config = $gateway->config;
        $this->_http = new Http($gateway->config);
        $this->_http->useClientCredentials();
        $this->_config->assertHasClientCredentials();
    }