INode.php 981 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Sabre\CalDAV\Notifications;
  3. /**
  4. * This node represents a single notification.
  5. *
  6. * The signature is mostly identical to that of Sabre\DAV\IFile, but the get() method
  7. * MUST return an xml document that matches the requirements of the
  8. * 'caldav-notifications.txt' spec.
  9. *
  10. * For a complete example, check out the Notification class, which contains
  11. * some helper functions.
  12. *
  13. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  14. * @author Evert Pot (http://evertpot.com/)
  15. * @license http://sabre.io/license/ Modified BSD License
  16. */
  17. interface INode {
  18. /**
  19. * This method must return an xml element, using the
  20. * Sabre\CalDAV\Notifications\INotificationType classes.
  21. *
  22. * @return INotificationType
  23. */
  24. function getNotificationType();
  25. /**
  26. * Returns the etag for the notification.
  27. *
  28. * The etag must be surrounded by litteral double-quotes.
  29. *
  30. * @return string
  31. */
  32. function getETag();
  33. }