You are here

public static function Braintree_Plan::factory in Commerce Braintree 7

1 call to Braintree_Plan::factory()
Braintree_Plan::_initialize in braintree_php/lib/Braintree/Plan.php

File

braintree_php/lib/Braintree/Plan.php, line 19

Class

Braintree_Plan

Code

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