Add `ViewableComment(Response)RuntimeCache`
authorMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jun 2021 13:13:42 +0000 (15:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jun 2021 13:13:42 +0000 (15:13 +0200)
wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php
new file mode 100644 (file)
index 0000000..2fcdd4c
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace wcf\system\cache\runtime;
+
+use wcf\data\comment\response\ViewableCommentResponse;
+use wcf\data\comment\response\ViewableCommentResponseList;
+
+/**
+ * Runtime cache implementation for viewable comment responses.
+ *
+ * @author  Matthias Schmidt
+ * @copyright   2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Cache\Runtime
+ * @since   5.5
+ *
+ * @method  ViewableCommentResponse[]   getCachedObjects()
+ * @method  ViewableCommentResponse     getObject($objectID)
+ * @method  ViewableCommentResponse[]   getObjects(array $objectIDs)
+ */
+class ViewableCommentResponseRuntimeCache extends AbstractRuntimeCache
+{
+    /**
+     * @inheritDoc
+     */
+    protected $listClassName = ViewableCommentResponseList::class;
+}
diff --git a/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php
new file mode 100644 (file)
index 0000000..adf975e
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace wcf\system\cache\runtime;
+
+use wcf\data\comment\ViewableComment;
+use wcf\data\comment\ViewableCommentList;
+
+/**
+ * Runtime cache implementation for viewable comments.
+ *
+ * @author  Matthias Schmidt
+ * @copyright   2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Cache\Runtime
+ * @since   5.5
+ *
+ * @method  ViewableComment[]   getCachedObjects()
+ * @method  ViewableComment     getObject($objectID)
+ * @method  ViewableComment[]   getObjects(array $objectIDs)
+ */
+class ViewableCommentRuntimeCache extends AbstractRuntimeCache
+{
+    /**
+     * @inheritDoc
+     */
+    protected $listClassName = ViewableCommentList::class;
+}