| 1 |
<?php |
| 2 |
/** |
| 3 |
* Define methods for delete data from the repository. |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Repositories |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Repositories; |
| 10 |
|
| 11 |
/** |
| 12 |
* Define methods for delete data from the repository. |
| 13 |
*/ |
| 14 |
interface Interface_Deletable_Repository { |
| 15 |
|
| 16 |
/** |
| 17 |
* Delete all the entities. |
| 18 |
*/ |
| 19 |
public function delete_all(): bool; |
| 20 |
|
| 21 |
/** |
| 22 |
* Remove entities that are older than a certain date or that are invalid. |
| 23 |
* This performs a cleanup of the repository data. |
| 24 |
*/ |
| 25 |
public function delete_old_and_invalid(); |
| 26 |
} |
| 27 |
|