ArrayableInterface.php
5 years ago
HydrateableInterface.php
5 years ago
ShutdownableInterface.php
5 years ago
TransientInterface.php
5 years ago
TransientInterface.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Interfaces; |
| 4 | |
| 5 | interface TransientInterface |
| 6 | { |
| 7 | /** |
| 8 | * @return string |
| 9 | */ |
| 10 | public function getTransientName(); |
| 11 | |
| 12 | /** |
| 13 | * @return int expiry time |
| 14 | */ |
| 15 | public function getExpiryTime(); |
| 16 | |
| 17 | /** |
| 18 | * Set the initial transient with some value |
| 19 | */ |
| 20 | public function setTransient(); |
| 21 | |
| 22 | /** |
| 23 | * @return bool |
| 24 | */ |
| 25 | public function getTransient(); |
| 26 | |
| 27 | /** |
| 28 | * Delete the transient |
| 29 | */ |
| 30 | public function deleteTransient(); |
| 31 | } |
| 32 |