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