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