@@ -4,11 +4,28 @@ CHANGELOG
445.1.0
55-----
66
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.
724 * 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.
1229
13305.0.0
1431-----
0 commit comments