HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/zeusxp5/tour.kamille.us/wp-content/plugins/surecart/app/src/Sync/SyncService.php
<?php
namespace SureCart\Sync;

use SureCart\Background\Migration\ProductsSyncProcess;
use SureCart\Sync\CustomerSyncService;
use SureCart\Sync\ProductSyncService;

/**
 * The sync service.
 */
class SyncService {
	/**
	 * Application instance.
	 *
	 * @var \SureCart\Application
	 */
	protected $app = null;

	/**
	 * Constructor.
	 *
	 * @param \SureCart\Application $app The application.
	 */
	public function __construct( $app ) {
		$this->app = $app;
	}

	/**
	 * Get the (multiple) products sync process.
	 *
	 * @return ProductsSyncProcess
	 */
	public function products() {
		return $this->app->resolve( 'surecart.sync.products' );
	}

	/**
	 * Get the (single) product sync service.
	 *
	 * @return ProductSyncService
	 */
	public function product() {
		return $this->app->resolve( 'surecart.sync.product' );
	}

	/**
	 * Get the customer sync service.
	 *
	 * @return CustomerSyncService
	 */
	public function customers() {
		return $this->app->resolve( 'surecart.sync.customers' );
	}

	/**
	 * Get the store sync service.
	 *
	 * @return StoreSyncService
	 */
	public function store() {
		return $this->app->resolve( 'surecart.sync.store' );
	}
}