summaryrefslogtreecommitdiffstats
path: root/lib/public/comments
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-11-23 23:58:22 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-11-23 23:58:22 +0100
commitab8937ba6ab28048d667dc6aa34a7ba1b1bd6bd9 (patch)
tree6ff9fc6d528a2a8b587e5faa111055e8effc348f /lib/public/comments
parent4005c0337b41c222cbc94ba4f7a34e8da61a38d0 (diff)
downloadnextcloud-server-ab8937ba6ab28048d667dc6aa34a7ba1b1bd6bd9.tar.gz
nextcloud-server-ab8937ba6ab28048d667dc6aa34a7ba1b1bd6bd9.zip
missing setters for setChildrenCount and setLatestChildDateTime (formerly …Timestamp)
Diffstat (limited to 'lib/public/comments')
-rw-r--r--lib/public/comments/icomment.php28
1 files changed, 23 insertions, 5 deletions
diff --git a/lib/public/comments/icomment.php b/lib/public/comments/icomment.php
index 3bc15c800f0..c8f407624a0 100644
--- a/lib/public/comments/icomment.php
+++ b/lib/public/comments/icomment.php
@@ -65,6 +65,15 @@ interface IComment {
public function getChildrenCount();
/**
+ * sets the number of children
+ *
+ * @param int $count
+ * @return IComment
+ * @since 9.0.0
+ */
+ public function setChildrenCount($count);
+
+ /**
* returns the message of the comment
*
* @return string
@@ -137,19 +146,28 @@ interface IComment {
/**
* sets the creation date of the comment and returns itself
*
- * @param \DateTime $timestamp
+ * @param \DateTime $dateTime
* @return IComment
* @since 9.0.0
*/
- public function setCreationDateTime(\DateTime $timestamp);
+ public function setCreationDateTime(\DateTime $dateTime);
/**
- * returns the timestamp of the most recent child
+ * returns the date of the most recent child
*
- * @return int
+ * @return \DateTime
+ * @since 9.0.0
+ */
+ public function getLatestChildDateTime();
+
+ /**
+ * sets the date of the most recent child
+ *
+ * @param \DateTime $dateTime
+ * @return IComment
* @since 9.0.0
*/
- public function getLatestChildTimestamp();
+ public function setLatestChildDateTime(\DateTime $dateTime);
/**
* returns the object type the comment is attached to