Notifiable   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A routeNotificationForMail() 0 4 1
A routeNotificationForSlack() 0 4 1
A getKey() 0 4 1
1
<?php
2
3
namespace Spatie\Backup\Notifications;
4
5
use Illuminate\Notifications\Notifiable as NotifiableTrait;
6
7
class Notifiable
8
{
9
    use NotifiableTrait;
10
11
    public function routeNotificationForMail()
12
    {
13
        return config('backup.notifications.mail.to');
14
    }
15
16
    public function routeNotificationForSlack()
17
    {
18
        return config('backup.notifications.slack.webhook_url');
19
    }
20
21
    public function getKey()
22
    {
23
        return 1;
24
    }
25
}
26