diff options
Diffstat (limited to 'lib/public/comments/icomment.php')
-rw-r--r-- | lib/public/comments/icomment.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/comments/icomment.php b/lib/public/comments/icomment.php index e695b5193f2..a7f4b4c6171 100644 --- a/lib/public/comments/icomment.php +++ b/lib/public/comments/icomment.php @@ -29,6 +29,7 @@ namespace OCP\Comments; * @since 9.0.0 */ interface IComment { + const MAX_MESSAGE_LENGTH = 1000; /** * returns the ID of the comment @@ -119,8 +120,12 @@ interface IComment { /** * sets the message of the comment and returns itself * + * When the given message length exceeds MAX_MESSAGE_LENGTH an + * MessageTooLongException shall be thrown. + * * @param string $message * @return IComment + * @throws MessageTooLongException * @since 9.0.0 */ public function setMessage($message); |