<definitionname>com.woltlab.wcf.category</definitionname>
<classname>wcf\system\category\TrophyCategoryType</classname>
</type>
+ <type>
+ <name>com.woltlab.wcf.userTrophy.notification</name>
+ <definitionname>com.woltlab.wcf.notification.objectType</definitionname>
+ <classname>wcf\system\user\notification\object\type\UserTrophyNotificationObjectType</classname>
+ <category>com.woltlab.wcf.user</category>
+ </type>
<!-- /trophy -->
<!-- deprecated -->
--- /dev/null
+<?php
+namespace wcf\system\user\notification\object;
+use wcf\data\user\trophy\UserTrophy;
+use wcf\data\DatabaseObjectDecorator;
+
+/**
+ * Represents a following user as a notification object.
+ *
+ * @author Joshua Ruesweg
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\User\Notification\Object
+ *
+ * @method UserTrophy getDecoratedObject()
+ * @mixin UserTrophy
+ */
+class UserTrophyNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
+ /**
+ * @inheritdoc
+ */
+ protected static $baseClass = UserTrophy::class;
+
+ /**
+ * @inheritdoc
+ */
+ public function getTitle() {
+ return $this->getDecoratedObject()->getTrophy()->getTitle();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getURL() {
+ return $this->getDecoratedObject()->getTrophy()->getLink();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getAuthorID() {
+ return $this->getDecoratedObject()->userID;
+ }
+
+}
--- /dev/null
+<?php
+namespace wcf\system\user\notification\object\type;
+use wcf\data\user\trophy\UserTrophy;
+use wcf\data\user\trophy\UserTrophyList;
+use wcf\system\user\notification\object\UserTrophyNotificationObject;
+
+/**
+ * Represents a user trophy notification object type.
+ *
+ * @author Joshua Ruesweg
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\User\Notification\Object\Type
+ */
+class UserTrophyNotificationObjectType extends AbstractUserNotificationObjectType {
+ /**
+ * @inheritdoc
+ */
+ protected static $decoratorClassName = UserTrophyNotificationObject::class;
+
+ /**
+ * @inheritdoc
+ */
+ protected static $objectClassName = UserTrophy::class;
+
+ /**
+ * @inheritdoc
+ */
+ protected static $objectListClassName = UserTrophyList::class;
+}