Passed
Push — master ( 40cb89...896f76 )
by Action
02:45
created

UnitPayNotifiable::routeNotificationForSlack()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ActionM\UnitPay;
4
5
use Illuminate\Notifications\Notifiable as NotifiableTrait;
6
7
class UnitPayNotifiable
8
{
9
    use NotifiableTrait;
10
11
    public function routeNotificationForMail()
12
    {
13
        return config('unitpay.mail.to');
14
    }
15
16
    public function routeNotificationForSlack()
17
    {
18
        return config('unitpay.slack.webhook_url');
19
    }
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getKey()
25
    {
26
        return 1;
27
    }
28
}
29