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