public function Braintree_Address::isEqual in Commerce Braintree 7
returns false if comparing object is not a Braintree_Address, or is a Braintree_Address with a different id
Parameters
object $other address to compare against:
Return value
boolean
File
- braintree_php/
lib/ Braintree/ Address.php, line 132
Class
- Braintree_Address
- Creates and manages Braintree Addresses
Code
public function isEqual($other) {
return !$other instanceof Braintree_Address ? false : $this->id === $other->id && $this->customerId === $other->customerId;
}