InvalidSignException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Exception;
6
7
use Throwable;
8
9
class InvalidSignException extends Exception
10
{
11
    public mixed $callback;
12
13
    public function __construct(
14
        int $code = self::SIGN_ERROR,
15
        string $message = '签名异常',
16
        mixed $extra = null,
17
        ?Throwable $previous = null
18
    ) {
19
        $this->callback = $extra;
20
21
        parent::__construct($message, $code, $extra, $previous);
22
    }
23
}
24