<?php

declare (strict_types=1);
namespace DropshippingExportFreeVendor\WPDesk\Library\DropshippingExport\Service\Ucp\Checkout;

use WC_Product;
/**
 * Resolves WooCommerce products by slug and converts prices to cents.
 */
final class ProductResolver
{
    public function get_product(string $product_id): ?WC_Product
    {
        $product = \wc_get_product($product_id);
        return $product instanceof WC_Product ? $product : null;
    }
}
