CouldNotUseNotification   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A missingMethod() 0 3 1
A missingConfig() 0 3 1
1
<?php
2
3
namespace NotificationChannels\FortySixElks\Exceptions;
4
5
class CouldNotUseNotification extends \Exception
6
{
7
    public static function missingMethod()
8
    {
9
        return new static('Your notification does not have the to46Elks method. Please create.');
10
    }
11
12
    public static function missingConfig()
13
    {
14
        return new static('46 elks username and / or password are missing. Did you add it to service array and check your .env file?');
15
    }
16
}
17