Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class CouldNotSendNotification extends Exception |
||
9 | { |
||
10 | /** |
||
11 | * @return static |
||
12 | */ |
||
13 | public static function invalidFrom() |
||
14 | { |
||
15 | return new static('Notification was not sent.Invalid `from` number.'); |
||
16 | } |
||
17 | |||
18 | public static function missingFrom() |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return CouldNotSendNotification |
||
25 | */ |
||
26 | public static function invalidReceiver() |
||
27 | { |
||
28 | return new static("The notifiable did not have a receiving phone number. Add a <routeNotificationForSmsru> |
||
29 | method or a <phone> attribute to your notifiable."); |
||
30 | } |
||
31 | |||
32 | public static function invalidMessageObject($message) |
||
39 | } |
||
40 | } |
||
41 |