You are here

public static function Braintree_Subscription::factory in Commerce Braintree 7

@ignore

5 calls to Braintree_Subscription::factory()
Braintree_CreditCard::_initialize in braintree_php/lib/Braintree/CreditCard.php
sets instance properties from an array of values
Braintree_Result_Error::__construct in braintree_php/lib/Braintree/Result/Error.php
overrides default constructor @ignore
Braintree_Subscription::find in braintree_php/lib/Braintree/Subscription.php
Braintree_Subscription::_verifyGatewayResponse in braintree_php/lib/Braintree/Subscription.php
@ignore
Braintree_WebhookNotification::_initialize in braintree_php/lib/Braintree/WebhookNotification.php

File

braintree_php/lib/Braintree/Subscription.php, line 32

Class

Braintree_Subscription
Braintree Subscription module

Code

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