public function getOrderStateLabel($stateOrOrder)
    {
        $state = $stateOrOrder instanceof OrderInterface ? $stateOrOrder->getState() : $stateOrOrder;

        return $this->translator->trans(OrderStates::getLabel($state));
    }
public function getOrderStateLabel($stateOrOrder)
    {
        $state = $stateOrOrder instanceof OrderInterface ? $stateOrOrder->getState() : $stateOrOrder;

        return $this->translator->trans(OrderStates::getLabel($state));
    }
public function getOrderStateLabel ( $ stateOrOrder ) { $ state = $ stateOrOrder instanceof OrderInterface ? $ stateOrOrder -> getState ( ) : $ stateOrOrder ; return $ this -> translator -> trans ( OrderStates :: getLabel ( $ state ) ) ; }
Returns the order state label.

@param string|OrderInterface $stateOrOrder $state
@return string
Returns the order state label .