Test Failed
Pull Request — master (#2)
by Talha Zekeriya
19:57 queued 09:46
created

InvalidConfiguration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
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 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configurationNotSet() 0 3 1
A invalidCredentials() 0 3 1
1
<?php
2
3
namespace NotificationChannels\NetGsm\Exceptions;
4
5
use Exception;
6
7
class InvalidConfiguration extends Exception
8
{
9
    /**
10
     * @return static
11
     */
12
    public static function configurationNotSet()
13
    {
14
        return new static('In order to send notification via NetGsm you need to add credentials in the `netgsm` key of `config.services`.');
15
    }
16
17
    /**
18
     * @return static
19
     */
20
    public static function invalidCredentials()
21
    {
22
        return new static('Invalid API credentials');
23
    }
24
}
25