690a66d5f042370e570fab4f61a4639f34bcde68
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / system / cache / runtime / UserConversationRuntimeCache.class.php
1 <?php
2
3 namespace wcf\system\cache\runtime;
4
5 use wcf\data\conversation\Conversation;
6 use wcf\data\conversation\UserConversationList;
7 use wcf\system\WCF;
8
9 /**
10 * Runtime cache implementation for conversation fetched using UserConversationList.
11 *
12 * @author Matthias Schmidt
13 * @copyright 2001-2019 WoltLab GmbH
14 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
15 * @package WoltLabSuite\Core\System\Cache\Runtime
16 * @since 3.0
17 *
18 * @method Conversation[] getCachedObjects()
19 * @method Conversation getObject($objectID)
20 * @method Conversation[] getObjects(array $objectIDs)
21 */
22 class UserConversationRuntimeCache extends AbstractRuntimeCache
23 {
24 /**
25 * @inheritDoc
26 */
27 protected $listClassName = UserConversationList::class;
28
29 /** @noinspection PhpMissingParentCallCommonInspection */
30
31 /**
32 * @inheritDoc
33 */
34 protected function getObjectList()
35 {
36 return new UserConversationList(WCF::getUser()->userID);
37 }
38 }