INotificationProvider.php 770 B

12345678910111213141516171819202122232425262728293031323334
  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 OCA\DAV\CalDAV\Reminder;
  8. use OCP\IUser;
  9. use Sabre\VObject\Component\VEvent;
  10. /**
  11. * Interface INotificationProvider
  12. *
  13. * @package OCA\DAV\CalDAV\Reminder
  14. */
  15. interface INotificationProvider {
  16. /**
  17. * Send notification
  18. *
  19. * @param VEvent $vevent
  20. * @param string|null $calendarDisplayName
  21. * @param string[] $principalEmailAddresses All email addresses associated to the principal owning the calendar object
  22. * @param IUser[] $users
  23. * @return void
  24. */
  25. public function send(VEvent $vevent,
  26. ?string $calendarDisplayName,
  27. array $principalEmailAddresses,
  28. array $users = []): void;
  29. }