namespace wcf\data\comment;
use wcf\data\like\object\AbstractLikeObject;
use wcf\data\like\Like;
-use wcf\data\object\type\ObjectTypeCache;
use wcf\system\comment\CommentHandler;
use wcf\system\user\notification\object\LikeUserNotificationObject;
use wcf\system\user\notification\UserNotificationHandler;
return $this->userID;
}
- /**
- * @inheritDoc
- */
- public function getObjectType() {
- if ($this->objectType === null) {
- $this->objectType = ObjectTypeCache::getInstance()->getObjectType($this->getDecoratedObject()->objectTypeID);
- }
-
- return $this->objectType;
- }
-
/**
* @inheritDoc
*/
use wcf\data\comment\Comment;
use wcf\data\like\object\AbstractLikeObject;
use wcf\data\like\Like;
-use wcf\data\object\type\ObjectTypeCache;
use wcf\system\comment\CommentHandler;
use wcf\system\user\notification\object\LikeUserNotificationObject;
use wcf\system\user\notification\UserNotificationHandler;
*/
protected static $baseClass = CommentResponse::class;
- /**
- * @inheritDoc
- */
- public function getObjectType() {
- if ($this->objectType === null) {
- $this->objectType = ObjectTypeCache::getInstance()->getObjectType($this->getDecoratedObject()->objectTypeID);
- }
-
- return $this->objectType;
- }
-
/**
* @inheritDoc
*/
public function getObjectID();
/**
- * Returns the object type.
+ * Returns the likeable object type previously set via `setObjectType()`.
*
* @return ObjectType
*/
public function updateLikeCounter($cumulativeLikes);
/**
- * Sets the object type.
+ * Sets the likable object type.
*
* @param ObjectType $objectType
*/