* @package WoltLabSuite\Core\System\User\Notification\Object\Type * * @method UserTrophyNotificationObject getUserNotificationObject() */ class UserTrophyReceivedNotificationEvent extends AbstractUserNotificationEvent { /** * @inheritDoc */ public function getTitle() { return $this->getLanguage()->get('wcf.user.notification.com.woltlab.wcf.userTrophy.notification.received'); } /** * @inheritDoc */ public function getMessage() { return $this->getLanguage()->getDynamicVariable('wcf.user.notification.trophy.received.message', [ 'userTrophy' => $this->userNotificationObject, 'author' => $this->author ]); } /** * @inheritDoc */ public function supportsEmailNotification() { return false; } /** * @inheritDoc */ public function getLink() { return $this->getUserNotificationObject()->getTrophy()->getLink(); } /** * @inheritDoc */ public function checkAccess() { return $this->getUserNotificationObject()->getDecoratedObject()->canSee(); } }