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

        return $this->translator->trans(PaymentStates::getLabel($state));
    }
public function getPaymentStateLabel($stateOrPayment)
    {
        $state = $stateOrPayment instanceof PaymentInterface ? $stateOrPayment->getState() : $stateOrPayment;

        return $this->translator->trans(PaymentStates::getLabel($state));
    }
public function getPaymentStateLabel ( $ stateOrPayment ) { $ state = $ stateOrPayment instanceof PaymentInterface ? $ stateOrPayment -> getState ( ) : $ stateOrPayment ; return $ this -> translator -> trans ( PaymentStates :: getLabel ( $ state ) ) ; }
Returns the payment state label.

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