CouldNotSendNotification   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A incorrectMessageClass() 0 3 1
A methodDoesNotExist() 0 3 1
1
<?php
2
3
namespace NotificationChannels\Vodafone\Exceptions;
4
5
class CouldNotSendNotification extends StandardNotification
6
{
7
    public static function methodDoesNotExist()
8
    {
9
        return new static('The toVodafone method does not exist in your notification class.');
10
    }
11
12
    public static function incorrectMessageClass()
13
    {
14
        return new static('Your notification is incorrectly formatted or needs to use an instance of the VodafoneMessage class.');
15
    }
16
}
17