public function getShipmentStateLabel($stateOrShipment)
    {
        $state = $stateOrShipment instanceof ShipmentInterface ? $stateOrShipment->getState() : $stateOrShipment;

        return $this->translator->trans(ShipmentStates::getLabel($state));
    }
public function getShipmentStateLabel($stateOrShipment)
    {
        $state = $stateOrShipment instanceof ShipmentInterface ? $stateOrShipment->getState() : $stateOrShipment;

        return $this->translator->trans(ShipmentStates::getLabel($state));
    }
public function getShipmentStateLabel ( $ stateOrShipment ) { $ state = $ stateOrShipment instanceof ShipmentInterface ? $ stateOrShipment -> getState ( ) : $ stateOrShipment ; return $ this -> translator -> trans ( ShipmentStates :: getLabel ( $ state ) ) ; }
Returns the shipment state label.

@param string|ShipmentInterface $stateOrShipment
@return string
Returns the shipment state label .