2 namespace wcf\system\cache\runtime
;
3 use wcf\data\conversation\Conversation
;
4 use wcf\data\conversation\UserConversationList
;
8 * Runtime cache implementation for conversation fetched using UserConversationList.
10 * @author Matthias Schmidt
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Cache\Runtime
16 * @method Conversation[] getCachedObjects()
17 * @method Conversation getObject($objectID)
18 * @method Conversation[] getObjects(array $objectIDs)
20 class UserConversationRuntimeCache
extends AbstractRuntimeCache
{
24 protected $listClassName = UserConversationList
::class;
26 /** @noinspection PhpMissingParentCallCommonInspection */
30 protected function getObjectList() {
31 return new UserConversationList(WCF
::getUser()->userID
);