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

CouldNotSendNotification::missingRecipient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
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