honeybadger-io/honeybadger-laravel

View on GitHub
src/Events/NotificationFailed.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Honeybadger\HoneybadgerLaravel\Events;

use Illuminate\Notifications\Events\NotificationFailed as LaravelNotificationFailed;

class NotificationFailed extends NotificationEvent
{
    public string $handles = LaravelNotificationFailed::class;

    /**
     * @param LaravelNotificationFailed $event
     * @return EventPayload
     */
    public function getEventPayload($event): EventPayload
    {
        $metadata = parent::getMetadata($event);

        return new EventPayload(
            'notification',
            'notification.failed',
            'Notification failed',
            $metadata,
        );
    }
}