SignatureError::getSignatureCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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