Braintree\AddressGateway::_determineCustomerId PHP Method

_determineCustomerId() private method

determines if a string id or Customer object was passed
private _determineCustomerId ( mixed $customerOrId ) : string
$customerOrId mixed
return string customerId
    private function _determineCustomerId($customerOrId)
    {
        $customerId = $customerOrId instanceof Customer ? $customerOrId->id : $customerOrId;
        $this->_validateCustomerId($customerId);
        return $customerId;
    }