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