CouldNotBootClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A missingCredentials() 0 6 1
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