DummyNotifier.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Test\Notification;
  8. use OCP\Notification\AlreadyProcessedException;
  9. use OCP\Notification\INotification;
  10. use OCP\Notification\INotifier;
  11. class DummyNotifier implements INotifier {
  12. /**
  13. * Identifier of the notifier, only use [a-z0-9_]
  14. *
  15. * @return string
  16. * @since 17.0.0
  17. */
  18. public function getID(): string {
  19. // TODO: Implement getID() method.
  20. }
  21. /**
  22. * Human readable name describing the notifier
  23. *
  24. * @return string
  25. * @since 17.0.0
  26. */
  27. public function getName(): string {
  28. // TODO: Implement getName() method.
  29. }
  30. /**
  31. * @param INotification $notification
  32. * @param string $languageCode The code of the language that should be used to prepare the notification
  33. * @return INotification
  34. * @throws \InvalidArgumentException When the notification was not prepared by a notifier
  35. * @throws AlreadyProcessedException When the notification is not needed anymore and should be deleted
  36. * @since 9.0.0
  37. */
  38. public function prepare(INotification $notification, string $languageCode): INotification {
  39. // TODO: Implement prepare() method.
  40. }
  41. }