IDeferrableApp.php 562 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Notification;
  8. /**
  9. * Interface IDeferrableApp
  10. *
  11. * @since 20.0.0
  12. */
  13. interface IDeferrableApp extends IApp {
  14. /**
  15. * Start deferring notifications until `flush()` is called
  16. *
  17. * @since 20.0.0
  18. */
  19. public function defer(): void;
  20. /**
  21. * Send all deferred notifications that have been stored since `defer()` was called
  22. *
  23. * @since 20.0.0
  24. */
  25. public function flush(): void;
  26. }