a374721f327d23df0cf3528dcd1ea8a3fafc81cf
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\user\notification\object\type;
3 use wcf\data\comment\Comment;
4 use wcf\data\comment\CommentList;
5 use wcf\system\user\notification\object\CommentUserNotificationObject;
6
7 /**
8 * Represents a comment notification object type for comments on pages.
9 *
10 * @author Joshua Ruesweg
11 * @copyright 2001-2018 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\User\Notification\Object\Type
14 * @since 3.2
15 */
16 class PageCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements IMultiRecipientCommentUserNotificationObjectType, IMultiRecipientCommentResponseOwnerUserNotificationObjectType {
17 use TMultiRecipientPageCommentUserNotificationObjectType;
18
19 /**
20 * @inheritDoc
21 */
22 protected static $decoratorClassName = CommentUserNotificationObject::class;
23
24 /**
25 * @inheritDoc
26 */
27 protected static $objectClassName = Comment::class;
28
29 /**
30 * @inheritDoc
31 */
32 protected static $objectListClassName = CommentList::class;
33
34 /**
35 * @inheritDoc
36 */
37 public function getCommentOwnerID(Comment $comment) {
38 return $comment->userID;
39 }
40 }