0b0814a200257e1b94f788a6a3cdd21928f2fa3d
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\user\notification\object;
3 use wcf\data\user\follow\UserFollow;
4 use wcf\data\DatabaseObjectDecorator;
5
6 /**
7 * Represents a following user as a notification object.
8 *
9 * @author Alexander Ebert
10 * @copyright 2001-2016 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package com.woltlab.wcf
13 * @subpackage system.user.notification.object
14 * @category Community Framework
15 *
16 * @method UserFollow getDecoratedObject()
17 * @mixin UserFollow
18 */
19 class UserFollowUserNotificationObject extends DatabaseObjectDecorator implements IStackableUserNotificationObject {
20 /**
21 * @inheritDoc
22 */
23 protected static $baseClass = UserFollow::class;
24
25 /**
26 * @inheritDoc
27 */
28 public function getTitle() {
29 return '';
30 }
31
32 /**
33 * @inheritDoc
34 */
35 public function getURL() {
36 return '';
37 }
38
39 /**
40 * @inheritDoc
41 */
42 public function getAuthorID() {
43 return $this->userID;
44 }
45
46 /**
47 * @inheritDoc
48 */
49 public function getRelatedObjectID() {
50 return $this->followUserID;
51 }
52 }