IBroadcastEvent.php 673 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Broadcast\Events;
  8. use JsonSerializable;
  9. /**
  10. * @since 18.0.0
  11. */
  12. interface IBroadcastEvent {
  13. /**
  14. * @return string the name of the event
  15. * @since 18.0.0
  16. */
  17. public function getName(): string;
  18. /**
  19. * @return string[]
  20. * @since 18.0.0
  21. */
  22. public function getUids(): array;
  23. /**
  24. * @return JsonSerializable the data to be sent to the client
  25. * @since 18.0.0
  26. */
  27. public function getPayload(): JsonSerializable;
  28. /**
  29. * @since 18.0.0
  30. */
  31. public function setBroadcasted(): void;
  32. }