LarametricsNotification   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A routeNotificationForMail() 0 4 1
A routeNotificationForSlack() 0 4 1
1
<?php
2
3
namespace Tracking\Models\Metrics;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Notifications\Notifiable;
7
8
class LarametricsNotification extends Model
9
{
10
    use Notifiable;
11
12
    protected $table = 'larametrics_notifications';
13
    public $guarded = [];
14
15
    public function routeNotificationForMail($notification = null)
16
    {
17
        return \Illuminate\Support\Facades\Config::get('larametrics.notificationMethods')['email'];
18
    }
19
    
20
    public function routeNotificationForSlack($notification = null)
21
    {
22
        return \Illuminate\Support\Facades\Config::get('larametrics.notificationMethods')['slack'];
23
    }
24
}