diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-06-12 15:40:42 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-06-13 15:58:38 +0300 |
commit | e9351ef779ea8e462062eaeb3e1824fe66829f7d (patch) | |
tree | bbb3424408068cb6826853b494321d35ba8f800b /lib/public/Notification | |
parent | 7382655a2c5a613cc923e9abd8142119d9de8d5c (diff) |
Add strict type on Notifications tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public/Notification')
-rw-r--r-- | lib/public/Notification/INotification.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/public/Notification/INotification.php b/lib/public/Notification/INotification.php index f71d0c53cc8..f7400e4778b 100644 --- a/lib/public/Notification/INotification.php +++ b/lib/public/Notification/INotification.php @@ -80,7 +80,7 @@ interface INotification { * @throws \InvalidArgumentException if the object type or id is invalid * @since 9.0.0 */ - public function setObject($type, $id); + public function setObject(string $type, $id); /** * @return string @@ -101,7 +101,7 @@ interface INotification { * @throws \InvalidArgumentException if the subject or parameters are invalid * @since 9.0.0 */ - public function setSubject($subject, array $parameters = []); + public function setSubject(string $subject, array $parameters = []); /** * @return string @@ -132,7 +132,7 @@ interface INotification { * @throws \InvalidArgumentException if the subject is invalid * @since 9.0.0 */ - public function setParsedSubject($subject); + public function setParsedSubject(string $subject); /** * @return string @@ -157,7 +157,7 @@ interface INotification { * @throws \InvalidArgumentException if the subject or parameters are invalid * @since 11.0.0 */ - public function setRichSubject($subject, array $parameters = []); + public function setRichSubject(string $subject, array $parameters = []); /** * @return string @@ -178,7 +178,7 @@ interface INotification { * @throws \InvalidArgumentException if the message or parameters are invalid * @since 9.0.0 */ - public function setMessage($message, array $parameters = []); + public function setMessage(string $message, array $parameters = []); /** * @return string @@ -209,7 +209,7 @@ interface INotification { * @throws \InvalidArgumentException if the message is invalid * @since 9.0.0 */ - public function setParsedMessage($message); + public function setParsedMessage(string $message); /** * @return string @@ -234,7 +234,7 @@ interface INotification { * @throws \InvalidArgumentException if the message or parameters are invalid * @since 11.0.0 */ - public function setRichMessage($message, array $parameters = []); + public function setRichMessage(string $message, array $parameters = []); /** * @return string @@ -254,7 +254,7 @@ interface INotification { * @throws \InvalidArgumentException if the link is invalid * @since 9.0.0 */ - public function setLink($link); + public function setLink(string $link); /** * @return string @@ -268,7 +268,7 @@ interface INotification { * @throws \InvalidArgumentException if the icon is invalid * @since 11.0.0 */ - public function setIcon($icon); + public function setIcon(string $icon); /** * @return string |