| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class SendResourceLogNotification |
||
| 6 | { |
||
| 7 | public function handle($logs) |
||
| 8 | { |
||
| 9 | if (! is_null(config('stethoscope.notifications.notifiable'))) { |
||
| 10 | $notifiable = app(config('stethoscope.notifications.notifiable')); |
||
| 11 | |||
| 12 | $notificationClass = $this->detemineNotificationClass(); |
||
| 13 | |||
| 14 | $notifiable->notify( |
||
| 15 | new $notificationClass($logs) |
||
| 16 | ); |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | private function detemineNotificationClass() |
||
| 25 | } |
||
| 26 | } |
||
| 27 |