Completed
Push — master ( 8667c0...414083 )
by Hilmi Erdem
07:00
created

CouldNotSendNotification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
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 15
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A missingRecipient() 0 6 1
1
<?php
2
3
namespace NotificationChannels\JetSms\Exceptions;
4
5
/**
6
 * Class CouldNotSendNotification.
7
 */
8
class CouldNotSendNotification extends \Exception
9
{
10
    /**
11
     * Get a new could not send notification exception with
12
     * missing recipient message.
13
     *
14
     * @return static
15
     */
16
    public static function missingRecipient()
17
    {
18
        $message = 'The recipient of the sms message is missing.';
19
20
        return new static($message);
21
    }
22
}
23