• File: OAuthCredentials.php
  • Full Path: /var/www/crm_set/application/vendor/braintree/braintree_php/lib/Braintree/OAuthCredentials.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 669 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
namespace Braintree;

/**
 * Braintree OAuthCredentials module
 *
 * @package    Braintree
 * @category   Resources
 */
class OAuthCredentials extends Base
{
    protected function _initialize($attribs)
    {
        $this->_attributes = $attribs;
    }

    public static function factory($attributes)
    {
        $instance = new self();
        $instance->_initialize($attributes);
        return $instance;
    }

    /**
     * returns a string representation of the access token
     * @return string
     */
    public function __toString()
    {
        return __CLASS__ . '[' .
                Util::attributesToString($this->_attributes) .']';
    }
}