1
0

IWebhookCompatibleEvent.php 499 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\EventDispatcher;
  8. /**
  9. * Interface for events which can be listened to by webhooks
  10. *
  11. * @since 30.0.0
  12. */
  13. interface IWebhookCompatibleEvent {
  14. /**
  15. * Return data to be serialized and sent to the webhook. Will be serialized using json_encode.
  16. *
  17. * @since 30.0.0
  18. */
  19. public function getWebhookSerializable(): array;
  20. }