SignatureError   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSignatureCode() 0 3 1
A __construct() 0 10 1
1
<?php
2
3
namespace nikserg\cryptoprocli\Exception;
4
5
use Throwable;
6
7
/**
8
 * Ошибка в подписи
9
 *
10
 *
11
 * @package nikserg\cryptoprocli\Exception
12
 */
13
class SignatureError extends \Exception
14
{
15
    protected string $signatureCode;
16
17
    public function __construct(
18
        string $message = "",
19
        string $signatureCode = null,
20
        int $code = 0,
21
        Throwable $previous = null
22
    )
23
    {
24
        $this->signatureCode = $signatureCode;
25
26
        parent::__construct($message, $code, $previous);
27
    }
28
29
    public function getSignatureCode(): ?string
30
    {
31
        return $this->signatureCode;
32
    }
33
}
34