1<?php
2
3namespace Sabre\DAV;
4
5/**
6 * Node class
7 *
8 * This is a helper class, that should aid in getting nodes setup.
9 *
10 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
11 * @author Evert Pot (http://evertpot.com/)
12 * @license http://sabre.io/license/ Modified BSD License
13 */
14abstract class Node implements INode {
15
16    /**
17     * Returns the last modification time as a unix timestamp.
18     *
19     * If the information is not available, return null.
20     *
21     * @return int
22     */
23    function getLastModified() {
24
25        return null;
26
27    }
28
29    /**
30     * Deletes the current node
31     *
32     * @throws Sabre\DAV\Exception\Forbidden
33     * @return void
34     */
35    function delete() {
36
37        throw new Exception\Forbidden('Permission denied to delete node');
38
39    }
40
41    /**
42     * Renames the node
43     *
44     * @throws Sabre\DAV\Exception\Forbidden
45     * @param string $name The new name
46     * @return void
47     */
48    function setName($name) {
49
50        throw new Exception\Forbidden('Permission denied to rename file');
51
52    }
53
54}
55