IReloadableWidget.php 464 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Dashboard;
  8. /**
  9. * Allow {@see IAPIWidgetV2} to reload their items
  10. *
  11. * @since 27.1.0
  12. */
  13. interface IReloadableWidget extends IAPIWidgetV2 {
  14. /**
  15. * Periodic interval in seconds in which to reload the widget's items
  16. *
  17. * @since 27.1.0
  18. */
  19. public function getReloadInterval(): int;
  20. }