public function getPaymentStateBadge($stateOrPayment)
    {
        $state = $stateOrPayment instanceof PaymentInterface ? $stateOrPayment->getState() : $stateOrPayment;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            PaymentStates::getTheme($state),
            $this->getPaymentStateLabel($state)
        );
    }
public function getPaymentStateBadge($stateOrPayment)
    {
        $state = $stateOrPayment instanceof PaymentInterface ? $stateOrPayment->getState() : $stateOrPayment;

        return sprintf(
            '<span class="label label-%s">%s</span>',
            PaymentStates::getTheme($state),
            $this->getPaymentStateLabel($state)
        );
    }
public function getPaymentStateBadge ( $ stateOrPayment ) { $ state = $ stateOrPayment instanceof PaymentInterface ? $ stateOrPayment -> getState ( ) : $ stateOrPayment ; return sprintf ( '<span class="label label-%s">%s</span>' , PaymentStates :: getTheme ( $ state ) , $ this -> getPaymentStateLabel ( $ state ) ) ; }
Returns the payment state badge.

@param string|PaymentInterface $stateOrPayment
@return string
Returns the payment state badge .