SendSubscriptionNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace Neo\EarlyAccess\Listeners;
4
5
use Neo\EarlyAccess\Events\UserSubscribed;
6
7
class SendSubscriptionNotification
8
{
9
    /**
10
     * Handle the event.
11
     *
12
     * @param \Neo\EarlyAccess\Events\UserSubscribed $event
13
     * @return void
14
     */
15
    public function handle(UserSubscribed $event)
16
    {
17
        $notifierClass = config('early-access.notifications.subscribed');
18
19
        $event->subscriber->notify(
20
            new $notifierClass($event->subscriber)
21
        );
22
    }
23
}
24