nextcloud/lib/public/Notification/IApp.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
910 B
PHP
Raw Normal View History

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