42caf1a08f728dedbc52c47463c4daffd9010510
[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 WoltLabSuite\Core\System\User\Notification\Object
13 *
14 * @method UserFollow getDecoratedObject()
15 * @mixin UserFollow
16 */
17 class UserFollowUserNotificationObject extends DatabaseObjectDecorator implements IStackableUserNotificationObject {
18 /**
19 * @inheritDoc
20 */
21 protected static $baseClass = UserFollow::class;
22
23 /**
24 * @inheritDoc
25 */
26 public function getTitle() {
27 return '';
28 }
29
30 /**
31 * @inheritDoc
32 */
33 public function getURL() {
34 return '';
35 }
36
37 /**
38 * @inheritDoc
39 */
40 public function getAuthorID() {
41 return $this->userID;
42 }
43
44 /**
45 * @inheritDoc
46 */
47 public function getRelatedObjectID() {
48 return $this->followUserID;
49 }
50 }