public static function Braintree_Customer::factory in Commerce Braintree 7
factory method: returns an instance of Braintree_Customer to the requesting method, with populated properties
@ignore
Return value
object instance of Braintree_Customer
3 calls to Braintree_Customer::factory()
- Braintree_Customer::find in braintree_php/
lib/ Braintree/ Customer.php - find a customer by id
- Braintree_Customer::_verifyGatewayResponse in braintree_php/
lib/ Braintree/ Customer.php - generic method for validating incoming gateway responses
- Braintree_CustomerTest::testGet_givesErrorIfInvalidProperty in braintree_php/
tests/ unit/ CustomerTest.php
File
- braintree_php/
lib/ Braintree/ Customer.php, line 555
Class
- Braintree_Customer
- Creates and manages Customers
Code
public static function factory($attributes) {
$instance = new self();
$instance
->_initialize($attributes);
return $instance;
}