private function resolveShipmentsState(OrderInterface $order)
    {
        if (!$order->isEmpty()) {
            if (! $order->requiresShipment()) {
                return ShipmentStates::STATE_SHIPPED;
            }

            // TODO Shipments states
        }

        return ShipmentStates::STATE_PENDING;
    }
private function resolveShipmentsState(OrderInterface $order)
    {
        if (!$order->isEmpty()) {
            if (! $order->requiresShipment()) {
                return ShipmentStates::STATE_SHIPPED;
            }

            // TODO Shipments states
        }

        return ShipmentStates::STATE_PENDING;
    }
private function resolveShipmentsState ( OrderInterface $ order ) { if ( ! $ order -> isEmpty ( ) ) { if ( ! $ order -> requiresShipment ( ) ) { return ShipmentStates :: STATE_SHIPPED ; } // TODO Shipments states } return ShipmentStates :: STATE_PENDING ; }
Resolves the global shipment state.

@param OrderInterface $order
@return string
Resolves the global shipment state .