| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Notifiable |
||
| 8 | { |
||
| 9 | use RoutesNotifications; |
||
|
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Returns the configured email address. |
||
| 13 | * |
||
| 14 | * @return null|string |
||
| 15 | */ |
||
| 16 | public function routeNotificationForMail() |
||
| 17 | { |
||
| 18 | return config('api-health.notifications.mail.to'); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Returns the webhook url for slack. |
||
| 23 | * |
||
| 24 | * @return null|string |
||
| 25 | */ |
||
| 26 | public function routeNotificationForSlack() |
||
| 27 | { |
||
| 28 | return config('api-health.notifications.slack.webhook_url'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * An identifier for this notifiable class. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getKey() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |