CouldNotSendNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

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