<?php
namespace wcf\data\user\notification\event;
+use wcf\data\object\type\ObjectType;
+use wcf\data\object\type\ObjectTypeCache;
use wcf\data\ProcessibleDatabaseObject;
use wcf\data\TDatabaseObjectOptions;
use wcf\data\TDatabaseObjectPermissions;
* @inheritDoc
*/
protected static $processorInterface = IUserNotificationEvent::class;
+
+ /**
+ * Returns the object type of this event.
+ *
+ * @return ObjectType
+ * @since 5.3
+ */
+ public function getObjectType() {
+ return ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID);
+ }
}