1<?php 2 3namespace Sabre\DAV; 4 5/** 6 * The INode interface is the base interface, and the parent class of both ICollection and IFile 7 * 8 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/). 9 * @author Evert Pot (http://evertpot.com/) 10 * @license http://sabre.io/license/ Modified BSD License 11 */ 12interface INode { 13 14 /** 15 * Deleted the current node 16 * 17 * @return void 18 */ 19 function delete(); 20 21 /** 22 * Returns the name of the node. 23 * 24 * This is used to generate the url. 25 * 26 * @return string 27 */ 28 function getName(); 29 30 /** 31 * Renames the node 32 * 33 * @param string $name The new name 34 * @return void 35 */ 36 function setName($name); 37 38 /** 39 * Returns the last modification time, as a unix timestamp 40 * 41 * @return int 42 */ 43 function getLastModified(); 44 45} 46