474c7d7e3e1554123f503e771eb4783e3a7a6e9a
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 namespace wcf\system\user\notification\object;
4
5 use wcf\data\DatabaseObjectDecorator;
6 use wcf\data\paid\subscription\user\PaidSubscriptionUser;
7 use wcf\system\request\LinkHandler;
8
9 /**
10 * Represents a paid subscription user as a notification object.
11 *
12 * @author Matthias Schmidt
13 * @copyright 2001-2019 WoltLab GmbH
14 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
15 * @package WoltLabSuite\Core\System\User\Notification\Object
16 * @since 3.1
17 *
18 * @method PaidSubscriptionUser getDecoratedObject()
19 * @mixin PaidSubscriptionUser
20 */
21 class PaidSubscriptionUserUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject
22 {
23 /**
24 * @inheritDoc
25 */
26 protected static $baseClass = PaidSubscriptionUser::class;
27
28 /**
29 * @inheritDoc
30 */
31 public function getAuthorID()
32 {
33 }
34
35 /**
36 * @inheritDoc
37 */
38 public function getTitle()
39 {
40 return $this->getSubscription()->getTitle();
41 }
42
43 /**
44 * @inheritDoc
45 */
46 public function getURL()
47 {
48 return LinkHandler::getInstance()->getLink('PaidSubscriptionList', ['forceFrontend' => true]);
49 }
50 }