IConsumer.php 610 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // use OCP namespace for all classes that are considered public.
  8. // This means that they should be used by apps instead of the internal Nextcloud classes
  9. namespace OCP\Activity;
  10. /**
  11. * Interface IConsumer
  12. *
  13. * @since 6.0.0
  14. */
  15. interface IConsumer {
  16. /**
  17. * @param IEvent $event
  18. * @return null
  19. * @since 6.0.0
  20. * @since 8.2.0 Replaced the parameters with an IEvent object
  21. */
  22. public function receive(IEvent $event);
  23. }