IAPIWidget.php 461 B

1234567891011121314151617181920212223
  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. /**
  9. * interface IAPIWidget
  10. *
  11. * @since 22.0.0
  12. */
  13. interface IAPIWidget extends IWidget {
  14. /**
  15. * @return \OCP\Dashboard\Model\WidgetItem[] The widget items
  16. * @since 22.0.0
  17. */
  18. public function getItems(string $userId, ?string $since = null, int $limit = 7): array;
  19. }