From b35d2fd8f2e96f56951e33d27d07cb213375e46b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 14 Oct 2016 16:55:20 +0200 Subject: Allow rich object subjects for Notifications Signed-off-by: Joas Schilling --- lib/public/Notification/INotification.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index fd16876a666..3a8bde0a375 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -127,6 +127,27 @@ interface INotification { */ public function getParsedSubject(); + /** + * @param string $subject + * @param array $parameters + * @return $this + * @throws \InvalidArgumentException if the subject or parameters are invalid + * @since 9.2.0 + */ + public function setRichSubject($subject, array $parameters = []); + + /** + * @return string + * @since 9.2.0 + */ + public function getRichSubject(); + + /** + * @return array[] + * @since 9.2.0 + */ + public function getRichSubjectParameters(); + /** * @param string $message * @param array $parameters -- cgit v1.2.3