@@ -4,11 +4,28 @@ CHANGELOG
4
4
5.1.0
5
5
-----
6
6
7
+ * The ` EmailRecipientInterface ` with ` hasEmail():bool ` and ` getEmail():string `
8
+ methods was introduced.
9
+ * [ BC BREAK] Added method ` hasPhone():bool ` to ` SmsRecipientInterface ` .
10
+ * Added ` email ` and and ` phone ` property to ` Recipient ` .
11
+ * [ BC BREAK] The ` Recipient ` now implements ` EmailRecipientInterface ` and ` SmsRecipientInterface ` .
12
+ * [ BC BREAK] The ` NoRecipient ` now implements ` EmailRecipientInterface ` and ` SmsRecipientInterface ` .
13
+ * [ BC BREAK] Removed the ` AdminRecipient ` .
14
+ * [ BC BREAK] Changed the type-hint of the ` $recipient ` argument in the ` as*Message() `
15
+ of the ` EmailNotificationInterface ` and ` SmsNotificationInterface ` to ` EmailRecipientInterface `
16
+ and ` SmsRecipientInterface ` .
17
+ * [ BC BREAK] Changed the type-hint of the ` $recipient ` argument in the static ` fromNotification() `
18
+ factory methods in ` EmailMessage ` and ` SmsMessage ` to ` EmailRecipientInterface `
19
+ and ` SmsRecipientInterface ` .
20
+ * Changed ` EmailChannel ` to only support recipients which implement the ` EmailRecipientInterface `
21
+ and have an email set.
22
+ * Changed ` SmsChannel ` to only supports recipients which implement the ` SmsRecipientInterface `
23
+ and have a phone number set.
7
24
* Added the Mattermost notifier bridge
8
- * [ BC BREAK] The ` ChatMessage::fromNotification() ` method's ` $recipient ` and ` $transport `
9
- arguments were removed.
10
- * [ BC BREAK] The ` EmailMessage::fromNotification() ` and ` SmsMessage::fromNotification() `
11
- methods' ` $transport ` argument was removed.
25
+ * [ BC BREAK] The ` ChatMessage::fromNotification() ` method's ` $recipient ` and ` $transport `
26
+ arguments were removed.
27
+ * [ BC BREAK] The ` EmailMessage::fromNotification() ` and ` SmsMessage::fromNotification() `
28
+ methods' ` $transport ` argument was removed.
12
29
13
30
5.0.0
14
31
-----
0 commit comments