public function Braintree_Customer::isEqual in Commerce Braintree 7
returns false if comparing object is not a Braintree_Customer, or is a Braintree_Customer with a different id
Parameters
object $otherCust customer to compare against:
Return value
boolean
File
- braintree_php/
lib/ Braintree/ Customer.php, line 441
Class
- Braintree_Customer
- Creates and manages Customers
Code
public function isEqual($otherCust) {
return !$otherCust instanceof Braintree_Customer ? false : $this->id === $otherCust->id;
}