Customer/Updater/CustomerUpdater.php
protected function supports(PaymentInterface $payment)
    {
        if (null === $method = $payment->getMethod()) {
            throw new RuntimeException("Payment method must be set.");
        }

        if ($method->isCredit() || $method->isOutstanding()) {
            return true;
        }

        return false;
    }
protected function supports(PaymentInterface $payment)
    {
        if (null === $method = $payment->getMethod()) {
            throw new RuntimeException("Payment method must be set.");
        }

        if ($method->isCredit() || $method->isOutstanding()) {
            return true;
        }

        return false;
    }
protected function supports ( PaymentInterface $ payment ) { if ( null === $ method = $ payment -> getMethod ( ) ) { throw new RuntimeException ( "Payment method must be set." ) ; } if ( $ method -> isCredit ( ) || $ method -> isOutstanding ( ) ) { return true ; } return false ; }
Returns whether or not the payment is supported.

@param PaymentInterface $payment

@return bool
Returns whether or not the payment is supported .