protected function getBraintreeCustomer($token = null, array $options = []): Customer
    {
        if (! $this->owner->braintree_id) {
            $customer = $this->owner->createAsBraintreeCustomer($token, $options);
        } else {
            $customer = $this->owner->asBraintreeCustomer();

            if ($token) {
                $this->owner->updateCard($token);
            }
        }

        return $customer;
    }
protected function getBraintreeCustomer($token = null, array $options = []): Customer
    {
        if (! $this->owner->braintree_id) {
            $customer = $this->owner->createAsBraintreeCustomer($token, $options);
        } else {
            $customer = $this->owner->asBraintreeCustomer();

            if ($token) {
                $this->owner->updateCard($token);
            }
        }

        return $customer;
    }
protected function getBraintreeCustomer ( $ token = null , array $ options = [ ] ) : Customer { if ( ! $ this -> owner -> braintree_id ) { $ customer = $ this -> owner -> createAsBraintreeCustomer ( $ token , $ options ) ; } else { $ customer = $ this -> owner -> asBraintreeCustomer ( ) ; if ( $ token ) { $ this -> owner -> updateCard ( $ token ) ; } } return $ customer ; }
Get the Braintree customer instance for the current user and token.

@param  string|null  $token
@param  array  $options
@return \Braintree\Customer
Get the Braintree customer instance for the current user and token .