Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function sendMessage(Throwable $e, string $eventUrl): void |
||
16 | { |
||
17 | $notifableEntity = $this->getNotifableEntity(); |
||
18 | $notifableEntity->setMessage( |
||
19 | $this->getMessageFormatter()->getExceptionMessage($e) |
||
20 | ); |
||
21 | $notifableEntity->setEventUrl($eventUrl); |
||
22 | |||
23 | $notificationClass = $this->getNotificationClass(); |
||
24 | Notification::sendNow($notifableEntity, $notificationClass); |
||
25 | } |
||
27 |