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

InvalidConfiguration::configurationNotSet()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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