| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | interface Store |
||
| 15 | { |
||
| 16 | /* ----------------------------------------------------------------- |
||
| 17 | | Main Methods |
||
| 18 | | ----------------------------------------------------------------- |
||
| 19 | */ |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get all the notifications. |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Support\Collection |
||
| 25 | */ |
||
| 26 | public function all(): Collection; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Push the new notification. |
||
| 30 | * |
||
| 31 | * @param array $notification |
||
| 32 | */ |
||
| 33 | public function push(array $notification); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Forget the notifications. |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | public function forget(); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Check if it has notifications. |
||
| 44 | * |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public function isEmpty(): bool; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Check if there is no notifications. |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function isNotEmpty(): bool; |
||
| 55 | } |
||
| 56 |