Passed
Push — master ( 39eaf0...d31fdd )
by Nikita
02:37 queued 01:05
created

SignatureError::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 4
rs 10
1
<?php
2
3
namespace nikserg\cryptoprocli\Exception;
4
5
use Throwable;
6
7
/**
8
 * Ошибка в подписи
9
 *
10
 * @package nikserg\cryptoprocli\Exception
11
 */
12
class SignatureError extends \Exception
13
{
14
    protected $signatureCode;
15
    public function __construct($message = "", $signatureCode = null, $code = 0, Throwable $previous = null)
16
    {
17
        $this->signatureCode = $signatureCode;
18
        parent::__construct($message, $code, $previous);
19
    }
20
21
    public function getSignatureCode()
22
    {
23
        return $this->signatureCode;
24
    }
25
}
26