CouldNotBootClient::missingCredentials()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Author: Facundo J Gonzalez
4
 * Date: 17/11/2017.
5
 */
6
7
namespace NotificationChannels\SMSC\Exceptions;
8
9
/**
10
 * Class CouldNotBootClient.
11
 */
12
class CouldNotBootClient extends \Exception
13
{
14
    /**
15
     * Get a new could not boot client exception.
16
     *
17
     * @return static
18
     */
19
    public static function missingCredentials()
20
    {
21
        $message = 'The SMSC channel will not boot without API credentials.';
22
23
        return new static($message);
24
    }
25
}
26