136adb40c27f800c61ff35d76b42157c62edc714
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\user\notification\object\type;
3 use wcf\data\comment\Comment;
4
5 /**
6 * Default interface for comment user notification object types with notifications
7 * being sent to multiple recipients.
8 *
9 * This interface can also be implemented by user notification object types for
10 * comment responses. In this case, there is no distinction between commentResponse
11 * and commentResponseOwner event and only a commentResponse event is fired.
12 *
13 * @author Matthias Schmidt
14 * @copyright 2001-2016 WoltLab GmbH
15 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
16 * @package WoltLabSuite\Core\System\User\Notification\Object\Type
17 * @since 3.0
18 */
19 interface IMultiRecipientCommentUserNotificationObjectType {
20 /**
21 * Returns the user ids of the notification recipients. If an empty array
22 * is returned, no notifications should be sent.
23 *
24 * @param Comment $comment
25 * @return integer[]
26 */
27 public function getRecipientIDs(Comment $comment);
28 }