1
0

IAPIWidget.php 481 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Dashboard;
  8. use OCP\Dashboard\Model\WidgetItem;
  9. /**
  10. * interface IAPIWidget
  11. *
  12. * @since 22.0.0
  13. */
  14. interface IAPIWidget extends IWidget {
  15. /**
  16. * @return list<WidgetItem> The widget items
  17. * @since 22.0.0
  18. */
  19. public function getItems(string $userId, ?string $since = null, int $limit = 7): array;
  20. }