NotificationInterface.php 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\CalDAV\Xml\Notification;
  4. use Sabre\Xml\Writer;
  5. use Sabre\Xml\XmlSerializable;
  6. /**
  7. * This interface reflects a single notification type.
  8. *
  9. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  10. * @author Evert Pot (http://evertpot.com/)
  11. * @license http://sabre.io/license/ Modified BSD License
  12. */
  13. interface NotificationInterface extends XmlSerializable
  14. {
  15. /**
  16. * This method serializes the entire notification, as it is used in the
  17. * response body.
  18. */
  19. public function xmlSerializeFull(Writer $writer);
  20. /**
  21. * Returns a unique id for this notification.
  22. *
  23. * This is just the base url. This should generally be some kind of unique
  24. * id.
  25. *
  26. * @return string
  27. */
  28. public function getId();
  29. /**
  30. * Returns the ETag for this notification.
  31. *
  32. * The ETag must be surrounded by literal double-quotes.
  33. *
  34. * @return string
  35. */
  36. public function getETag();
  37. }