INode.php 919 B

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