Completed
Push — master ( 326b3e...061c53 )
by Freek
09:13
created

Notifiable   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
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
    /**
12
     * Route notifications for the mail channel.
13
     *
14
     * @return string
15
     */
16
    public function routeNotificationForMail()
17
    {
18
        return config('laravel-backup.notifications.mail.to');
19
    }
20
21
    public function routeNotificationForSlack()
22
    {
23
        return config('laravel-backup.notifications.slack.webhook_url');
24
    }
25
26
    public function getKey()
27
    {
28
        return 1;
29
    }
30
}
31