From 2c0b5dee19f1276a40a6dfdf5e13e7d5bafb20f3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 27 Oct 2016 15:43:34 +0200 Subject: Allow rich object strings in messages as well Signed-off-by: Joas Schilling --- lib/public/Notification/INotification.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/public/Notification') diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index 3a8bde0a375..55109a5ee2e 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -183,6 +183,27 @@ interface INotification { */ public function getParsedMessage(); + /** + * @param string $message + * @param array $parameters + * @return $this + * @throws \InvalidArgumentException if the message or parameters are invalid + * @since 9.2.0 + */ + public function setRichMessage($message, array $parameters = []); + + /** + * @return string + * @since 9.2.0 + */ + public function getRichMessage(); + + /** + * @return array[] + * @since 9.2.0 + */ + public function getRichMessageParameters(); + /** * @param string $link * @return $this -- cgit v1.2.3