aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-11 12:11:01 +0100
committerJoas Schilling <coding@schilljs.com>2020-03-31 10:51:16 +0200
commita20e81f0f34389ef9c9e1a4df3ec2b514968b19f (patch)
treef33a876e9fc5fe07588b79e90341d7f1728a4e7d /lib/public/Comments
parent720dc4e93d83d738861c614745f514cc347ef1f9 (diff)
downloadnextcloud-server-a20e81f0f34389ef9c9e1a4df3ec2b514968b19f.tar.gz
nextcloud-server-a20e81f0f34389ef9c9e1a4df3ec2b514968b19f.zip
Allow to set and get the reference id
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/IComment.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index aac68a4036b..b98a015a30e 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -263,4 +263,21 @@ interface IComment {
*/
public function setObject($objectType, $objectId);
+ /**
+ * returns the reference id of the comment
+ *
+ * @return string|null
+ * @since 19.0.0
+ */
+ public function getReferenceId(): ?string;
+
+ /**
+ * sets (overwrites) the reference id of the comment
+ *
+ * @param string|null $referenceId e.g. sha256 hash sum
+ * @return IComment
+ * @since 19.0.0
+ */
+ public function setReferenceId(?string $referenceId): IComment;
+
}