honeybadger-io/honeybadger-laravel

View on GitHub
src/Events/CacheMiss.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Honeybadger\HoneybadgerLaravel\Events;

use Illuminate\Cache\Events\CacheMissed;

class CacheMiss extends ApplicationEvent
{
    public string $handles = CacheMissed::class;

    /**
     * @param CacheMissed $event
     * @return EventPayload
     */
    public function getEventPayload($event): EventPayload
    {
        return new EventPayload(
            'query',
            'cache.miss',
            'Cache miss',
            ['key' => $event->key],
        );
    }
}