CaptureCustomEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 3 1
1
<?php
2
3
namespace ErsoyInsider\NewrelicCustomEvent\Listeners;
4
5
use ErsoyInsider\NewrelicCustomEvent\Events\CustomEvent;
6
use Illuminate\Contracts\Queue\ShouldQueue;
7
8
/**
9
 * Class CaptureCustomEvent
10
 * @package ErsoyInsider\NewrelicCustomEvent\Listeners
11
 */
12
class CaptureCustomEvent implements ShouldQueue
13
{
14
    /**
15
     * Handle the event.
16
     *
17
     * @param CustomEvent $event
18
     * @return void
19
     */
20
    public function handle(CustomEvent $event)
21
    {
22
        app('new-relic-custom-event')->makeRequest($event->getProperties());
23
    }
24
}
25