| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Repository\GoogleSheets; |
| 4 |
|
| 5 |
use IvyForms\Entity\GoogleSheets\GoogleSheetIntegration; |
| 6 |
use IvyForms\Repository\BaseRepositoryInterface; |
| 7 |
|
| 8 |
/** |
| 9 |
* Google Sheets repository interface. |
| 10 |
*/ |
| 11 |
interface GoogleSheetsRepositoryInterface extends BaseRepositoryInterface |
| 12 |
{ |
| 13 |
public function findById(int $id): ?GoogleSheetIntegration; |
| 14 |
|
| 15 |
/** |
| 16 |
* @return array<GoogleSheetIntegration> |
| 17 |
*/ |
| 18 |
public function findByFormId(int $formId): array; |
| 19 |
|
| 20 |
/** |
| 21 |
* @return array<GoogleSheetIntegration> |
| 22 |
*/ |
| 23 |
public function findEnabledByFormId(int $formId): array; |
| 24 |
|
| 25 |
public function countByFormId(int $formId): int; |
| 26 |
|
| 27 |
public function deleteById(int $id): bool; |
| 28 |
|
| 29 |
public function deleteByFormId(int $formId): bool; |
| 30 |
|
| 31 |
public function updateSyncStatus(int $id, string $status, ?string $lastRunAt = null): bool; |
| 32 |
} |
| 33 |
|