public function isDeliveryModuleFor(Order $order)
    {
        $model = $this->getModuleModel();

        return $order->getDeliveryModuleId() == $model->getId();
    }
public function isDeliveryModuleFor(Order $order)
    {
        $model = $this->getModuleModel();

        return $order->getDeliveryModuleId() == $model->getId();
    }
public function isDeliveryModuleFor ( Order $ order ) { $ model = $ this -> getModuleModel ( ) ; return $ order -> getDeliveryModuleId ( ) == $ model -> getId ( ) ; }
Check if this module is the delivery module for a given order

@param  Order $order an order
@return bool  true if this module is the delivery module for the given order.
Check if this module is the delivery module for a given order