2 namespace wcf\system\user\notification\event;
3 use wcf\data\user\notification\UserNotification;
4 use wcf\data\user\UserProfile;
5 use wcf\system\user\notification\object\IUserNotificationObject;
8 * Provides a default implementation for objects sharing common data.
10 * @author Alexander Ebert
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\Event
15 abstract class AbstractSharedUserNotificationEvent extends AbstractUserNotificationEvent {
19 public function setObject(UserNotification $notification, IUserNotificationObject $object, UserProfile $author, array $additionalData = []) {
20 parent::setObject($notification, $object, $author, $additionalData);
26 * Provide specialized handlers with object ids, these ids will be collected and should be
27 * read once the first time data is requested from the notification event.
29 abstract protected function prepare();