public static function Braintree_Address::factory in Commerce Braintree 7
factory method: returns an instance of Braintree_Address to the requesting method, with populated properties @ignore
Return value
object instance of Braintree_Address
8 calls to Braintree_Address::factory()
- Braintree_Address::find in braintree_php/
lib/ Braintree/ Address.php - find an address by id
- Braintree_Address::_verifyGatewayResponse in braintree_php/
lib/ Braintree/ Address.php - generic method for validating incoming gateway responses
- Braintree_AddressTest::testCustomerIdNotEqual in braintree_php/
tests/ unit/ AddressTest.php - Braintree_AddressTest::testGet_givesErrorIfInvalidProperty in braintree_php/
tests/ unit/ AddressTest.php - Braintree_AddressTest::testIsEqual in braintree_php/
tests/ unit/ AddressTest.php
File
- braintree_php/
lib/ Braintree/ Address.php, line 345
Class
- Braintree_Address
- Creates and manages Braintree Addresses
Code
public static function factory($attributes) {
$instance = new self();
$instance
->_initialize($attributes);
return $instance;
}