| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Repository\Form; |
| 4 |
|
| 5 |
// phpcs:disable PSR1.Files.SideEffects |
| 6 |
if (!defined('ABSPATH')) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
use IvyForms\Repository\BaseRepositoryInterface; |
| 11 |
|
| 12 |
interface FormRepositoryInterface extends BaseRepositoryInterface |
| 13 |
{ |
| 14 |
/** |
| 15 |
* Check if a form exists in the database. |
| 16 |
* |
| 17 |
* @param int $formId |
| 18 |
* @return bool |
| 19 |
*/ |
| 20 |
public function exists(int $formId): bool; |
| 21 |
|
| 22 |
/** |
| 23 |
* @param int $formId |
| 24 |
* @param string $value |
| 25 |
* |
| 26 |
* @return bool |
| 27 |
*/ |
| 28 |
public function updateFormStarred(int $formId, string $value): bool; |
| 29 |
|
| 30 |
/** |
| 31 |
* @param int $formId |
| 32 |
* @param string $value |
| 33 |
* |
| 34 |
* @return bool |
| 35 |
*/ |
| 36 |
public function updateFormStatus(int $formId, string $value): bool; |
| 37 |
|
| 38 |
/** |
| 39 |
* Get the count of form filters. |
| 40 |
* |
| 41 |
* @return array<string, int> |
| 42 |
*/ |
| 43 |
public function getFilterCount(): array; |
| 44 |
} |
| 45 |
|