Remove obsolete template code
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / system / cache / runtime / UserConversationRuntimeCache.class.php
1 <?php
2 namespace wcf\system\cache\runtime;
3 use wcf\data\conversation\Conversation;
4 use wcf\data\conversation\UserConversationList;
5 use wcf\system\WCF;
6
7 /**
8 * Runtime cache implementation for conversation fetched using UserConversationList.
9 *
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
14 * @since 3.0
15 *
16 * @method Conversation[] getCachedObjects()
17 * @method Conversation getObject($objectID)
18 * @method Conversation[] getObjects(array $objectIDs)
19 */
20 class UserConversationRuntimeCache extends AbstractRuntimeCache {
21 /**
22 * @inheritDoc
23 */
24 protected $listClassName = UserConversationList::class;
25
26 /** @noinspection PhpMissingParentCallCommonInspection */
27 /**
28 * @inheritDoc
29 */
30 protected function getObjectList() {
31 return new UserConversationList(WCF::getUser()->userID);
32 }
33 }