You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/lib/public/Notification/IApp.php

38 lines
910 B

10 years ago
<?php
declare(strict_types=1);
10 years ago
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
10 years ago
*/
namespace OCP\Notification;
10 years ago
/**
* Interface IApp
*
* @since 9.0.0
10 years ago
*/
interface IApp {
/**
* @param INotification $notification
* @throws IncompleteNotificationException When the notification does not have all required fields set
* @since 9.0.0
* @since 30.0.0 throws {@see IncompleteNotificationException} instead of \InvalidArgumentException
10 years ago
*/
public function notify(INotification $notification): void;
10 years ago
/**
* @param INotification $notification
* @since 9.0.0
10 years ago
*/
public function markProcessed(INotification $notification): void;
10 years ago
/**
* @param INotification $notification
10 years ago
* @return int
* @since 9.0.0
10 years ago
*/
public function getCount(INotification $notification): int;
10 years ago
}