Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CouldNotSendNotification extends \Exception |
||
8 | { |
||
9 | /** |
||
10 | * @return static |
||
11 | */ |
||
12 | public static function missingFrom() |
||
13 | { |
||
14 | return new static('Notification was not sent. Missing `from` number.'); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @return CouldNotSendNotification |
||
19 | */ |
||
20 | public static function invalidReceiver() |
||
21 | { |
||
22 | return new static("The notifiable did not have a receiving phone number. Add a <routeNotificationForSmsru> |
||
23 | method or a <phone> attribute to your notifiable."); |
||
24 | } |
||
25 | |||
26 | public static function invalidMessageObject($message) |
||
33 | } |
||
34 | } |
||
35 |