private static function Braintree_Address::_determineCustomerId in Commerce Braintree 7
determines if a string id or Customer object was passed @ignore
Parameters
mixed $customerOrId:
Return value
string customerId
3 calls to Braintree_Address::_determineCustomerId()
- Braintree_Address::delete in braintree_php/
lib/ Braintree/ Address.php - delete an address by id
- Braintree_Address::find in braintree_php/
lib/ Braintree/ Address.php - find an address by id
- Braintree_Address::update in braintree_php/
lib/ Braintree/ Address.php - updates the address record
File
- braintree_php/
lib/ Braintree/ Address.php, line 285
Class
- Braintree_Address
- Creates and manages Braintree Addresses
Code
private static function _determineCustomerId($customerOrId) {
$customerId = $customerOrId instanceof Braintree_Customer ? $customerOrId->id : $customerOrId;
self::_validateCustomerId($customerId);
return $customerId;
}