class-file-progress-storage.php
3 months ago
interface-progress-storage.php
3 months ago
logger-only.php
3 months ago
migration.php
3 months ago
staging.php
3 months ago
zip.php
3 months ago
interface-progress-storage.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | namespace BMI\Plugin\Progress; |
| 4 | |
| 5 | /** |
| 6 | * Interface ProgressStorageInterface |
| 7 | * |
| 8 | * Defines the contract for storing and retrieving progress state |
| 9 | * during search and replace operations. |
| 10 | */ |
| 11 | interface ProgressStorageInterface |
| 12 | { |
| 13 | /** |
| 14 | * Loads the stored progress report. |
| 15 | * |
| 16 | * @return array|null The progress report array, or null if not found. |
| 17 | */ |
| 18 | public function load(); |
| 19 | |
| 20 | /** |
| 21 | * Saves the progress report. |
| 22 | * |
| 23 | * @param array $report The report array to save. |
| 24 | * @return bool True on success, false on failure. |
| 25 | */ |
| 26 | public function save($report); |
| 27 | |
| 28 | /** |
| 29 | * Clears/deletes the stored progress. |
| 30 | * |
| 31 | * @return bool True on success, false on failure. |
| 32 | */ |
| 33 | public function clear(); |
| 34 | |
| 35 | /** |
| 36 | * Checks if a stored progress report exists. |
| 37 | * |
| 38 | * @return bool True if exists, false otherwise. |
| 39 | */ |
| 40 | public function exists(); |
| 41 | } |
| 42 |