21 lines
558 B
PHP
21 lines
558 B
PHP
<?php
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
|
|
interface IProductSync
|
|
{
|
|
/**
|
|
* Import products from external source
|
|
* @param int $perPage Number of products to import per page
|
|
* @return array Import results containing success status, counts, and any errors
|
|
*/
|
|
public function importProducts(int $perPage = 100): array;
|
|
|
|
/**
|
|
* Import a single product
|
|
* @param array $productData Product data to import
|
|
* @return bool Success status
|
|
*/
|
|
public function importSingleProduct(array $productData): bool;
|
|
}
|