9ebe7f2b082fb9a62e3b2de0cb006e6d0693d1db
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\user\notification\object;
3 use wcf\data\paid\subscription\user\PaidSubscriptionUser;
4 use wcf\data\DatabaseObjectDecorator;
5 use wcf\system\request\LinkHandler;
6
7 /**
8 * Represents a paid subscription user as a notification object.
9 *
10 * @author Matthias Schmidt
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
14 * @since 3.1
15 *
16 * @method PaidSubscriptionUser getDecoratedObject()
17 * @mixin PaidSubscriptionUser
18 */
19 class PaidSubscriptionUserUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
20 /**
21 * @inheritDoc
22 */
23 protected static $baseClass = PaidSubscriptionUser::class;
24
25 /**
26 * @inheritDoc
27 */
28 public function getAuthorID() {
29 return null;
30 }
31
32 /**
33 * @inheritDoc
34 */
35 public function getTitle() {
36 return $this->getSubscription()->getTitle();
37 }
38
39 /**
40 * @inheritDoc
41 */
42 public function getURL() {
43 return LinkHandler::getInstance()->getLink('PaidSubscriptionList', ['forceFrontend' => true]);
44 }
45 }