mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
24 lines
632 B
PHP
24 lines
632 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
interface SyncServiceInterface
|
|
{
|
|
/**
|
|
* Synchronize media from the source
|
|
*
|
|
* @param array $source The source configuration
|
|
* @param string $type Sync type (full, scan, update)
|
|
* @param callable $progressCallback Callback for progress updates
|
|
* @return array Result of the sync operation
|
|
*/
|
|
public function sync($source, string $type = 'full', callable $progressCallback = null): array;
|
|
|
|
/**
|
|
* Get the supported source types
|
|
*
|
|
* @return array Array of supported source types
|
|
*/
|
|
public function getSupportedTypes(): array;
|
|
}
|