IQuota.php 778 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\DAV;
  4. /**
  5. * IQuota interface.
  6. *
  7. * Implement this interface to add the ability to return quota information. The ObjectTree
  8. * will check for quota information on any given node. If the information is not available it will
  9. * attempt to fetch the information from the root node.
  10. *
  11. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  12. * @author Evert Pot (http://evertpot.com/)
  13. * @license http://sabre.io/license/ Modified BSD License
  14. */
  15. interface IQuota extends ICollection
  16. {
  17. /**
  18. * Returns the quota information.
  19. *
  20. * This method MUST return an array with 2 values, the first being the total used space,
  21. * the second the available space (in bytes)
  22. */
  23. public function getQuotaInfo();
  24. }