generatePaymentFormOrderParamsNotSet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace ActionM\WebMoneyMerchant\Exceptions;
4
5
use Exception;
6
use Illuminate\Notifications\Notification;
7
8
class InvalidConfiguration extends Exception
9
{
10
    public static function notificationClassInvalid($className)
11
    {
12
        return new self("Class {$className} is an invalid notification class. ".
13
            'A notification class must extend '.Notification::class);
14
    }
15
16
    public static function searchOrderFilterInvalid()
17
    {
18
        return new self('WebMoneyMerchant config: searchOrderFilter callback not set');
19
    }
20
21
    public static function orderPaidFilterInvalid()
22
    {
23
        return new self('WebMoneyMerchant config: paidOrderFilter callback not set');
24
    }
25
26
    public static function generatePaymentFormOrderParamsNotSet($field)
27
    {
28
        return new self('WebMoneyMerchant config: generatePaymentForm required order params not set ( field: `'.$field.'`)');
29
    }
30
31
    public static function generatePaymentFormOrderInvalidPaymentNo($field)
32
    {
33
        return new self('WebMoneyMerchant config: generatePaymentForm required order params not set ( field: `'.$field.'`)');
34
    }
35
}
36