PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 4.3.3
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v4.3.3
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / app / src / Sync / SyncService.php
SyncService.php
73 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace SureCart\Sync;
3
4 use SureCart\Background\Migration\ProductsSyncProcess;
5 use SureCart\Sync\CustomerSyncService;
6 use SureCart\Sync\ProductSyncService;
7
8 /**
9 * The sync service.
10 */
11 class SyncService {
12 /**
13 * Application instance.
14 *
15 * @var \SureCart\Application
16 */
17 protected $app = null;
18
19 /**
20 * Constructor.
21 *
22 * @param \SureCart\Application $app The application.
23 */
24 public function __construct( $app ) {
25 $this->app = $app;
26 }
27
28 /**
29 * Get the (multiple) products sync process.
30 *
31 * @return ProductsSyncProcess
32 */
33 public function products() {
34 return $this->app->resolve( 'surecart.sync.products' );
35 }
36
37 /**
38 * Get the (single) product sync service.
39 *
40 * @return ProductSyncService
41 */
42 public function product() {
43 return $this->app->resolve( 'surecart.sync.product' );
44 }
45
46 /**
47 * Get the customer sync service.
48 *
49 * @return CustomerSyncService
50 */
51 public function customers() {
52 return $this->app->resolve( 'surecart.sync.customers' );
53 }
54
55 /**
56 * Get the woocommerce products import service.
57 *
58 * @return \SureCart\Sync\WooCommerce\WooCommerceImportService
59 */
60 public function woocommerce_products() {
61 return $this->app->resolve( 'surecart.sync.woocommerce_products' );
62 }
63
64 /**
65 * Get the store sync service.
66 *
67 * @return StoreSyncService
68 */
69 public function store() {
70 return $this->app->resolve( 'surecart.sync.store' );
71 }
72 }
73