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

36 lines
945 B

11 years ago
<?php
declare(strict_types=1);
11 years ago
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
11 years ago
*/
namespace OCP\Notification;
11 years ago
use OCP\AppFramework\Attribute\Implementable;
#[Implementable(since: '9.0.0')]
11 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
11 years ago
*/
public function notify(INotification $notification): void;
11 years ago
/**
* @param INotification $notification
* @since 9.0.0
11 years ago
*/
public function markProcessed(INotification $notification): void;
11 years ago
/**
* @param INotification $notification
11 years ago
* @return int
* @since 9.0.0
11 years ago
*/
public function getCount(INotification $notification): int;
11 years ago
}