2021-03-22 16:56:24 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-03-22 16:56:24 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCP\Dashboard;
|
|
|
|
|
2024-09-24 15:53:13 +02:00
|
|
|
use OCP\Dashboard\Model\WidgetItem;
|
|
|
|
|
2021-03-22 16:56:24 +01:00
|
|
|
/**
|
|
|
|
* interface IAPIWidget
|
|
|
|
*
|
|
|
|
* @since 22.0.0
|
|
|
|
*/
|
|
|
|
interface IAPIWidget extends IWidget {
|
|
|
|
/**
|
2024-09-24 15:53:13 +02:00
|
|
|
* @return list<WidgetItem> The widget items
|
2021-03-22 16:56:24 +01:00
|
|
|
* @since 22.0.0
|
|
|
|
*/
|
|
|
|
public function getItems(string $userId, ?string $since = null, int $limit = 7): array;
|
|
|
|
}
|